3v4l.org

run code in 300+ PHP versions simultaneously
<?php $otherArray = [1, 2, 3]; $foo = "this is a string"; $foo['key'] = $otherArray;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0180.00318.68
8.3.50.0090.00618.05
8.3.40.0120.00318.91
8.3.30.0120.00318.71
8.3.20.0040.00421.80
8.3.10.0080.00023.47
8.3.00.0040.00421.78
8.2.180.0140.00718.41
8.2.170.0090.00622.96
8.2.160.0030.01020.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00419.63
8.2.120.0060.00326.35
8.2.110.0060.00321.04
8.2.100.0120.00017.84
8.2.90.0030.00518.30
8.2.80.0080.00017.97
8.2.70.0050.00317.93
8.2.60.0040.00418.22
8.2.50.0040.00418.10
8.2.40.0050.00319.42
8.2.30.0040.00419.37
8.2.20.0050.00319.72
8.2.10.0030.00620.64
8.2.00.0080.00019.30
8.1.280.0080.00825.92
8.1.270.0000.00818.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01117.39
8.1.230.0060.00620.95
8.1.220.0030.00517.78
8.1.210.0040.00418.91
8.1.200.0080.00017.48
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00718.85
8.1.150.0000.00718.94
8.1.140.0040.00422.09
8.1.130.0000.00717.44
8.1.120.0000.00717.40
8.1.110.0000.00717.33
8.1.100.0040.00417.46
8.1.90.0000.00817.45
8.1.80.0040.00417.32
8.1.70.0070.00017.41
8.1.60.0050.00317.46
8.1.50.0000.00817.46
8.1.40.0060.00317.55
8.1.30.0000.00917.71
8.1.20.0040.00417.57
8.1.10.0030.00517.53
8.1.00.0000.00817.50
8.0.300.0060.00319.71
8.0.290.0060.00316.75
8.0.280.0030.00318.42
8.0.270.0040.00417.25
8.0.260.0000.00717.00
8.0.250.0050.00316.91
8.0.240.0000.00716.95
8.0.230.0040.00417.01
8.0.220.0040.00416.93
8.0.210.0000.00716.82
8.0.200.0070.00016.87
8.0.190.0000.00716.98
8.0.180.0070.00017.00
8.0.170.0030.00516.88
8.0.160.0050.00317.02
8.0.150.0030.00916.85
8.0.140.0030.00616.91
8.0.130.0000.00813.37
8.0.120.0000.00816.79
8.0.110.0000.00816.83
8.0.100.0040.00416.90
8.0.90.0000.00717.01
8.0.80.0100.00716.95
8.0.70.0000.00716.89
8.0.60.0040.00416.92
8.0.50.0040.00416.90
8.0.30.0120.00817.12
8.0.20.0090.01017.40
8.0.10.0040.00416.89
8.0.00.0150.00716.73
7.4.330.0050.00015.55
7.4.320.0000.00616.54
7.4.300.0000.00616.57
7.4.290.0040.00416.54
7.4.280.0050.00316.61
7.4.270.0060.00016.59
7.4.260.0030.00316.46
7.4.250.0030.00316.54
7.4.240.0000.00716.57
7.4.230.0000.00716.61
7.4.220.0040.00416.61
7.4.210.0080.00716.47
7.4.200.0070.00016.39
7.4.160.0070.00916.46
7.4.140.0110.00717.86
7.4.130.0150.00316.34
7.4.120.0040.01216.58
7.4.110.0200.00016.51
7.4.100.0140.00616.44
7.4.90.0060.01216.46
7.4.80.0140.00619.39
7.4.70.0100.00716.53
7.4.60.0060.01016.30
7.4.50.0060.00916.58
7.4.40.0070.01016.44
7.4.10.0120.00314.83
7.4.00.0060.01115.04
7.3.330.0050.00013.23
7.3.320.0030.00313.12
7.3.310.0070.00016.27
7.3.300.0030.00316.30
7.3.290.0030.00316.17
7.3.280.0080.01016.29
7.3.260.0070.01216.53
7.3.240.0100.00916.44
7.3.230.0070.01316.32
7.3.210.0060.01016.45
7.3.200.0100.00616.28
7.3.190.0090.00916.38
7.3.180.0060.00916.41
7.3.170.0070.01716.31
7.3.160.0040.01116.41
7.3.130.0070.01114.69
7.3.120.0060.01214.97
7.3.110.0110.00715.04
7.3.100.0070.01015.04
7.3.90.0060.01014.66
7.3.80.0050.00515.14
7.3.70.0060.00614.69
7.3.60.0030.00714.92
7.3.50.0030.00614.99
7.3.40.0110.00414.92
7.3.30.0090.00914.95
7.3.20.0090.00016.54
7.3.10.0060.00316.69
7.3.00.0830.01115.43
7.2.330.0050.01616.45
7.2.320.0160.00416.56
7.2.310.0040.01216.44
7.2.300.0120.00416.49
7.2.290.0070.01116.48
7.2.260.0060.01314.87
7.2.250.0040.01514.66
7.2.240.0100.00314.82
7.2.230.0040.01114.62
7.2.220.0030.01015.05
7.2.210.0060.00714.55
7.2.200.0000.01414.71
7.2.190.0090.00614.59
7.2.180.0030.00915.04
7.2.170.0000.00914.54
7.2.160.0070.00715.07
7.2.150.0100.00316.64
7.2.140.0060.00616.93
7.2.130.0600.01015.63
7.2.120.0400.01115.62
7.2.110.0840.01115.64
7.2.100.0480.00815.67
7.2.90.0440.00815.80
7.2.80.0810.00615.63
7.2.70.0750.01115.85
7.2.60.0600.00815.86
7.2.50.0440.00515.87
7.2.40.0880.00815.83
7.2.30.0420.00415.66
7.2.20.0500.00715.71
7.2.10.0270.01015.77
7.2.00.1110.00815.85
7.1.330.0060.00615.89
7.1.320.0060.00915.79
7.1.310.0070.01015.54
7.1.300.0030.00715.59
7.1.290.0040.00715.69
7.1.280.0100.00315.49
7.1.270.0070.00715.76
7.1.260.0100.00315.87
7.1.250.0810.00714.79
7.1.240.0000.00915.90
7.1.230.0100.00315.74
7.1.220.0100.00315.84
7.1.210.0040.01115.75
7.1.200.0040.00715.77
7.1.190.0090.00615.79
7.1.180.0030.00515.60
7.1.170.0000.01215.79
7.1.160.0000.01615.74
7.1.150.0110.00315.91
7.1.140.0030.00615.74
7.1.130.0000.01515.84
7.1.120.0000.01715.89
7.1.110.0070.01015.87
7.1.100.0080.00615.70
7.1.90.0000.00915.74
7.1.80.0000.01515.58
7.1.70.0030.01015.72
7.1.60.0000.00915.39
7.1.50.0040.00815.79
7.1.40.0100.00315.61
7.1.30.0090.00315.70
7.1.20.0110.00015.62
7.1.10.0070.00715.39
7.1.00.0060.00315.66
7.0.330.0730.00614.33
7.0.320.0030.00915.16
7.0.310.0040.00415.51
7.0.300.0060.00315.37
7.0.290.0070.00315.32
7.0.280.0040.00815.39
7.0.270.0040.01115.09
7.0.260.0070.00715.30
7.0.250.0070.00315.21
7.0.240.0070.00715.58
7.0.230.0060.00615.49
7.0.220.0000.00815.52
7.0.210.0040.00715.36
7.0.200.0070.00715.23
7.0.190.0000.01415.33
7.0.180.0060.00815.45
7.0.170.0090.00615.31
7.0.160.0030.01015.32
7.0.150.0000.00915.52
7.0.140.0030.01215.20
7.0.130.0030.01015.29
7.0.120.0030.00915.17
7.0.110.0040.00715.35
7.0.100.0060.00615.07
7.0.90.0030.01015.45
7.0.80.0120.00315.06
7.0.70.0090.00915.34
7.0.60.0050.00515.25
7.0.50.0040.00415.66
7.0.40.0040.01113.08
7.0.30.0030.00613.49
7.0.20.0060.00613.29
7.0.10.0030.01013.38
7.0.00.0060.00913.34
5.6.400.0110.00414.36
5.6.390.0030.01214.20
5.6.380.0130.00114.51
5.6.370.0070.00714.58
5.6.360.0000.01013.90
5.6.350.0040.01114.08
5.6.340.0090.00014.30
5.6.330.0030.01014.49
5.6.320.0110.00314.06
5.6.310.0090.00614.11
5.6.300.0070.00714.57
5.6.290.0140.00014.11
5.6.280.0030.01214.61
5.6.270.0030.01014.15
5.6.260.0060.01014.44
5.6.250.0040.01114.45
5.6.240.0040.01114.41
5.6.230.0060.01214.38
5.6.220.0090.00614.60
5.6.210.0040.00414.15
5.6.200.0120.00314.10
5.6.190.0040.01114.25
5.6.180.0000.01414.39
5.6.170.0110.00314.06
5.6.160.0040.01214.13
5.6.150.0030.00614.02
5.6.140.0040.00414.43
5.6.130.0000.01414.23
5.6.120.0080.00414.28
5.6.110.0000.01314.30
5.6.100.0030.01314.39
5.6.90.0040.01114.10
5.6.80.0030.00914.07
5.6.70.0100.00314.14
5.6.60.0000.00913.99
5.6.50.0030.01014.08
5.6.40.0070.00714.24
5.6.30.0000.00814.30
5.6.20.0100.00014.12
5.6.10.0040.00714.51
5.6.00.0040.01114.04

preferences:
58.71 ms | 400 KiB | 5 Q