3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['x', 'y', 'z']; array_push($array, "test"); foreach($array as $element) { if ($element=='x') { $element = 'a'; } ?> <li><?php echo $element ?></li> <?php } ?>

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.0090.00618.31
8.3.50.0100.00317.98
8.3.40.0070.00718.52
8.3.30.0120.00418.60
8.3.20.0040.00420.16
8.3.10.0080.00023.69
8.3.00.0030.00619.38
8.2.180.0130.00316.38
8.2.170.0040.01122.96
8.2.160.0100.00319.28
8.2.150.0090.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00421.07
8.2.120.0070.00026.35
8.2.110.0000.00921.00
8.2.100.0080.00317.89
8.2.90.0060.00317.91
8.2.80.0040.00418.03
8.2.70.0030.00518.04
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00822.27
8.2.30.0030.00519.43
8.2.20.0000.00718.14
8.2.10.0040.00417.97
8.2.00.0050.00218.22
8.1.280.0110.00725.92
8.1.270.0090.00020.25
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0130.00322.08
8.1.230.0100.00320.84
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0000.00917.23
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.88
8.1.150.0050.00220.29
8.1.140.0000.00717.65
8.1.130.0000.00818.87
8.1.120.0100.00017.45
8.1.110.0060.00617.43
8.1.100.0030.00717.47
8.1.90.0110.00017.46
8.1.80.0030.00817.41
8.1.70.0040.00417.42
8.1.60.0000.00817.61
8.1.50.0000.00817.41
8.1.40.0000.00717.56
8.1.30.0000.00817.66
8.1.20.0060.00317.55
8.1.10.0040.00417.39
8.1.00.0000.00817.32
8.0.300.0040.00420.15
8.0.290.0030.00616.75
8.0.280.0040.00418.35
8.0.270.0070.00017.25
8.0.260.0070.00016.87
8.0.250.0000.00816.91
8.0.240.0060.00316.84
8.0.230.0000.00716.89
8.0.220.0040.00416.84
8.0.210.0000.00716.79
8.0.200.0030.00616.83
8.0.190.0080.00016.83
8.0.180.0030.00316.96
8.0.170.0050.00316.94
8.0.160.0000.00717.00
8.0.150.0030.00316.76
8.0.140.0070.00016.72
8.0.130.0000.00513.34
8.0.120.0000.00716.74
8.0.110.0040.00416.91
8.0.100.0000.00716.97
8.0.90.0030.00416.90
8.0.80.0030.01316.82
8.0.70.0050.00316.93
8.0.60.0070.00016.88
8.0.50.0040.00416.94
8.0.30.0080.01117.22
8.0.20.0100.00917.40
8.0.10.0040.00416.88
8.0.00.0100.01016.65
7.4.330.0050.00015.55
7.4.320.0060.00016.48
7.4.300.0000.00616.47
7.4.290.0070.00016.52
7.4.280.0040.00416.57
7.4.270.0040.00416.54
7.4.260.0020.00516.55
7.4.250.0030.00316.35
7.4.240.0070.00016.40
7.4.230.0000.00716.50
7.4.220.0000.00716.49
7.4.210.0090.00616.61
7.4.200.0040.00416.64
7.4.160.0110.00616.47
7.4.150.0100.01017.40
7.4.140.0110.01417.86
7.4.130.0070.01016.41
7.4.120.0110.01016.49
7.4.110.0190.00316.46
7.4.100.0060.00916.46
7.4.90.0110.00716.48
7.4.80.0110.01619.39
7.4.70.0120.00616.50
7.4.60.0130.00316.55
7.4.50.0030.01216.46
7.4.40.0070.01116.36
7.4.00.0080.00815.07
7.3.330.0000.00613.23
7.3.320.0000.00613.16
7.3.310.0000.00716.39
7.3.300.0040.00416.05
7.3.290.0090.00916.26
7.3.280.0080.00816.31
7.3.270.0150.00317.40
7.3.260.0080.01116.28
7.3.250.0090.01316.45
7.3.240.0110.00616.24
7.3.230.0100.00716.43
7.3.210.0120.00616.14
7.3.200.0070.01116.26
7.3.190.0090.00616.32
7.3.180.0090.00916.54
7.3.170.0230.01116.44
7.3.160.0100.00716.50
7.3.120.0050.01014.76
7.3.110.0120.00414.76
7.3.100.0030.01014.61
7.3.90.0060.00814.64
7.3.80.0020.00914.74
7.3.70.0070.00514.66
7.3.60.0050.00814.69
7.3.50.0060.00714.87
7.3.40.0060.00914.80
7.3.30.0060.00814.79
7.3.20.0030.01016.42
7.3.10.0060.00316.54
7.3.00.0060.00716.74
7.2.330.0070.01716.72
7.2.320.0060.01516.66
7.2.310.0140.00316.70
7.2.300.0100.00616.32
7.2.290.0120.00416.27
7.2.250.0060.00614.83
7.2.240.0040.01115.02
7.2.230.0050.01115.10
7.2.220.0050.00814.95
7.2.210.0090.00715.02
7.2.200.0060.00715.02
7.2.190.0110.00614.94
7.2.180.0080.00614.93
7.2.170.0080.00614.93
7.2.160.0060.00614.99
7.2.150.0000.01817.01
7.2.140.0110.00416.63
7.2.130.0000.01316.70
7.2.120.0060.00916.97
7.2.110.0100.00716.87
7.2.100.0030.00516.71
7.2.90.0030.01016.73
7.2.80.0100.00716.87
7.2.70.0090.00316.80
7.2.60.0050.00916.85
7.2.50.0110.00016.64
7.2.40.0090.00316.62
7.2.30.0030.01316.96
7.2.20.0070.00717.00
7.2.10.0130.01217.32
7.2.00.0110.01317.30
7.1.330.0000.01515.86
7.1.320.0060.00715.59
7.1.310.0060.00715.63
7.1.300.0030.00815.64
7.1.290.0070.00715.72
7.1.280.0060.00615.78
7.1.270.0030.01015.45
7.1.260.0070.00815.72
7.1.250.0040.00815.57
7.1.200.0000.01416.02
7.1.130.0270.00616.36
7.1.120.0270.00616.63
7.1.110.0260.00615.86
7.1.100.0280.00616.35
7.1.90.0260.00615.78
7.1.80.0080.01116.05
7.1.70.0040.01315.30
7.1.60.0160.01933.28
7.1.50.0220.01332.61
7.1.40.0220.00832.70
7.1.30.0580.01032.53
7.1.20.0500.01132.66
7.1.10.0340.01414.73
7.1.00.0000.01514.82

preferences:
67.72 ms | 401 KiB | 5 Q