3v4l.org

run code in 300+ PHP versions simultaneously
<?php $person = array( 'name' => 'John', 'age' => 24, 'locations' => Array ( 'Greenwhich' => Array ( 'New Eltham', 'Central Greenwhich' ), 'Feltham' ) ); echo $person['locations']['Greenwhich'][2] = 'Outer Greenwich'; echo print_r($person, true);

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.0120.00916.50
8.3.50.0120.00318.09
8.3.40.0110.00418.79
8.3.30.0070.01019.22
8.3.20.0070.00020.35
8.3.10.0000.00721.78
8.3.00.0060.00319.25
8.2.180.0070.01416.63
8.2.170.0110.00422.96
8.2.160.0140.00020.43
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.80
8.2.110.0060.00321.04
8.2.100.0000.01118.16
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0030.00520.00
8.2.30.0040.00418.08
8.2.20.0000.00817.71
8.2.10.0000.00717.98
8.2.00.0000.00717.64
8.1.280.0110.00425.92
8.1.270.0080.00020.60
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00321.24
8.1.230.0000.01117.52
8.1.220.0040.00417.77
8.1.210.0060.00318.77
8.1.200.0050.00517.10
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0060.00320.16
8.1.160.0000.00721.95
8.1.150.0000.00818.78
8.1.140.0000.00717.36
8.1.130.0000.00817.81
8.1.120.0020.00517.37
8.1.110.0000.00817.38
8.1.100.0000.00817.45
8.1.90.0000.00717.40
8.1.80.0000.00717.30
8.1.70.0070.00017.41
8.1.60.0030.00617.41
8.1.50.0000.00817.43
8.1.40.0040.00417.33
8.1.30.0040.00417.44
8.1.20.0050.00217.56
8.1.10.0000.00817.40
8.1.00.0030.00517.52
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.36
8.0.270.0070.00017.25
8.0.260.0060.00017.17
8.0.250.0030.00316.83
8.0.240.0000.00616.95
8.0.230.0030.00316.89
8.0.220.0030.00316.85
8.0.210.0040.00416.87
8.0.200.0040.00416.89
8.0.190.0050.00316.91
8.0.180.0050.00216.71
8.0.170.0060.00316.85
8.0.160.0000.00716.76
8.0.150.0070.00016.69
8.0.140.0070.00016.79
8.0.130.0000.00713.30
8.0.120.0040.00416.81
8.0.110.0070.00016.71
8.0.100.0000.00816.61
8.0.90.0040.00416.68
8.0.80.0070.00716.85
8.0.70.0080.00016.69
8.0.60.0000.00716.71
8.0.50.0040.00416.62
8.0.30.0110.00916.96
8.0.20.0120.00617.40
8.0.10.0040.00316.84
8.0.00.0080.00916.70
7.4.330.0030.00315.08
7.4.320.0030.00316.34
7.4.300.0020.00616.44
7.4.290.0030.00316.54
7.4.280.0000.00816.45
7.4.270.0000.00716.55
7.4.260.0040.00416.50
7.4.250.0030.00316.30
7.4.240.0000.00716.45
7.4.230.0030.00316.49
7.4.220.0100.00616.48
7.4.210.0070.00716.46
7.4.200.0000.00716.28
7.4.160.0140.00716.37
7.4.150.0100.00717.40
7.4.140.0040.01517.86
7.4.130.0110.00916.59
7.4.120.0120.00816.38
7.4.110.0060.01316.46
7.4.100.0090.01316.33
7.4.90.0110.00716.43
7.4.80.0130.01019.39
7.4.70.0100.00716.56
7.4.60.0000.01516.56
7.4.50.0000.00516.45
7.4.40.0150.00716.29
7.4.30.0130.00716.58
7.4.00.0030.01315.00
7.3.330.0000.00512.95
7.3.320.0070.00713.03
7.3.310.0000.00816.23
7.3.300.0000.00616.17
7.3.290.0080.00816.21
7.3.280.0080.00916.19
7.3.270.0080.00917.40
7.3.260.0100.00716.46
7.3.250.0130.00916.36
7.3.240.0090.01316.15
7.3.230.0120.00916.40
7.3.210.0030.02016.09
7.3.200.0100.00719.39
7.3.190.0150.00016.39
7.3.180.0060.01016.26
7.3.170.0070.01016.27
7.3.160.0140.00616.24
7.3.120.0070.00714.62
7.3.110.0060.01014.92
7.3.100.0030.01214.49
7.3.90.0000.01414.84
7.3.80.0070.01014.67
7.3.70.0050.00514.71
7.3.60.0030.00614.54
7.3.50.0030.00614.80
7.3.40.0030.00914.69
7.3.30.0040.01114.53
7.3.20.0030.00916.60
7.3.10.0000.01416.81
7.3.00.0080.00416.68
7.2.330.0120.00816.64
7.2.320.0180.00616.79
7.2.310.0100.00716.61
7.2.300.0150.00616.44
7.2.290.0030.01316.50
7.2.240.0000.01615.08
7.2.230.0070.01015.14
7.2.220.0080.00415.13
7.2.210.0090.00014.97
7.2.200.0040.00815.06
7.2.190.0070.00714.92
7.2.180.0070.01015.09
7.2.170.0030.00915.00
7.2.160.0070.01014.84
7.2.150.0060.00916.82
7.2.140.0070.00716.61
7.2.130.0080.00416.85
7.2.120.0030.01016.92
7.2.110.0000.01016.94
7.2.100.0030.00616.89
7.2.90.0120.00016.92
7.2.80.0090.00616.88
7.2.70.0120.00317.07
7.2.60.0030.01316.97
7.2.50.0070.01016.93
7.2.40.0030.01016.80
7.2.30.0060.00317.10
7.2.20.0070.00316.77
7.2.10.0070.00716.88
7.2.00.0050.01018.25
7.1.330.0000.01715.83
7.1.320.0030.00715.93
7.1.310.0040.00815.66
7.1.300.0030.00615.93
7.1.290.0080.00315.78
7.1.280.0000.01315.79
7.1.270.0000.01215.82
7.1.260.0100.00315.56
7.1.250.0080.00415.59
7.1.100.0040.00718.11
7.1.70.0030.00617.03
7.1.60.0140.00319.46
7.1.50.0170.01734.80
7.1.00.0130.06322.40
7.0.200.0030.00316.78
7.0.140.0000.06722.06
7.0.60.0070.04319.88
7.0.50.0030.07317.95
7.0.40.0070.08320.31
7.0.30.0270.08720.19
7.0.20.0370.07020.30
7.0.10.0100.08020.33
7.0.00.0070.04320.20
5.6.280.0030.07320.92
5.6.210.0070.07720.49
5.6.200.0000.08718.19
5.6.190.0000.04720.48
5.6.180.0500.07320.39
5.6.170.0300.06020.71
5.6.160.0100.06020.63
5.6.150.0030.04018.27
5.6.140.0030.08318.15
5.6.130.0100.08318.14
5.6.120.0030.04721.04
5.6.110.0070.03720.98
5.6.100.0100.08021.10
5.6.90.0200.08020.99
5.6.80.0030.07720.40
5.5.350.0170.04320.32
5.5.340.0100.07717.94
5.5.330.0070.05320.21
5.5.320.0170.04720.50
5.5.310.0200.06320.26
5.5.300.0130.07717.95
5.5.290.0100.06317.98
5.5.280.0000.08020.64
5.5.270.0030.06720.82
5.5.260.0000.09320.86
5.5.250.0000.05020.77
5.5.240.0030.05720.03
5.4.450.0130.05719.45
5.4.440.1100.07319.61
5.4.430.0430.05719.19
5.4.420.0900.05319.54
5.4.410.0070.06019.35
5.4.400.0230.05018.79
5.4.390.0170.05318.80
5.4.380.0130.05718.74
5.4.370.0330.06018.50
5.4.360.0270.05018.40
5.4.350.0130.06018.79
5.4.340.0170.05318.46
5.4.320.0370.05318.59
5.4.310.0200.06018.74
5.4.300.0200.05318.74
5.4.290.0230.05018.80
5.4.280.0100.06718.68
5.4.270.0130.06318.58
5.4.260.0230.05018.79
5.4.250.0130.05718.78
5.4.240.0170.05718.58
5.4.230.0130.07718.61
5.4.220.0230.05718.84
5.4.210.0130.06718.51
5.4.200.0200.05016.61
5.4.190.0170.05318.42
5.4.180.0100.06318.54
5.4.170.0170.05318.70
5.4.160.0130.06018.53
5.4.150.0230.05018.75
5.4.140.0230.04316.20
5.4.130.0130.05716.42
5.4.120.0200.05716.20
5.4.110.0170.05316.44
5.4.100.0200.05016.26
5.4.90.0200.05316.43
5.4.80.0200.07016.25
5.4.70.0200.06016.11
5.4.60.0200.05016.23
5.4.50.0230.06716.30
5.4.40.0230.05316.18
5.4.30.0170.05716.17
5.4.20.0370.05316.38
5.4.10.0200.06716.22
5.4.00.0200.06715.74
5.3.290.0230.07314.66
5.3.280.0270.05014.75
5.3.270.0170.06014.73
5.3.260.0230.06014.62
5.3.250.0270.04714.65
5.3.240.0200.05014.63
5.3.230.0170.05714.82
5.3.220.0300.05014.77
5.3.210.0200.05314.73
5.3.200.0100.06314.69
5.3.190.0130.06014.61
5.3.180.0200.04714.57
5.3.170.0300.04014.66
5.3.160.0170.05014.79
5.3.150.0200.05714.77
5.3.140.0270.04314.69
5.3.130.0170.06014.56
5.3.120.0370.05714.59
5.3.110.0230.06014.56
5.3.100.0200.05014.14
5.3.90.0230.06714.14
5.3.80.0200.04714.14
5.3.70.0170.05314.13
5.3.60.0070.06014.02
5.3.50.0200.04714.00
5.3.40.0170.05313.99
5.3.30.0130.05313.93
5.3.20.0130.05713.79
5.3.10.0170.05013.87
5.3.00.0230.06713.84
5.2.170.0200.04011.17
5.2.160.0130.04011.27
5.2.150.0170.04011.18
5.2.140.0100.05311.26
5.2.130.0170.04311.32
5.2.120.0230.03011.15
5.2.110.0100.04711.20
5.2.100.0270.04011.16
5.2.90.0100.04311.32
5.2.80.0130.04311.15
5.2.70.0130.04011.20
5.2.60.0200.04011.09
5.2.50.0170.04011.07
5.2.40.0130.04011.03
5.2.30.0130.05010.97
5.2.20.0170.04011.01
5.2.10.0170.03711.07
5.2.00.0200.04310.70
5.1.60.0170.03010.06
5.1.50.0100.04310.06
5.1.40.0100.0439.99
5.1.30.0200.04310.31
5.1.20.0200.04310.38
5.1.10.0100.03710.20
5.1.00.0070.04310.15
5.0.50.0170.0238.68
5.0.40.0170.0178.41
5.0.30.0030.0508.35
5.0.20.0130.0238.37
5.0.10.0030.0438.24
5.0.00.0100.0538.18
4.4.90.0130.0305.91
4.4.80.0100.0205.90
4.4.70.0070.0305.96
4.4.60.0100.0205.96
4.4.50.0070.0275.87
4.4.40.0170.0335.91
4.4.30.0070.0205.95
4.4.20.0070.0336.00
4.4.10.0130.0205.93
4.4.00.0030.0405.85
4.3.110.0070.0235.84
4.3.100.0100.0175.75
4.3.90.0070.0205.80
4.3.80.0000.0405.79
4.3.70.0070.0205.86
4.3.60.0070.0205.79
4.3.50.0070.0235.92
4.3.40.0030.0405.78
4.3.30.0000.0274.61
4.3.20.0100.0204.61
4.3.10.0100.0174.50
4.3.00.0000.0237.21

preferences:
52.83 ms | 400 KiB | 5 Q