3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = 'Foo'; echo "What is \$row?\n"; var_dump($row); $rows = ['Hello', 'Test', 'Wow']; echo "Now lets run the same thing again, only this time not as reference\n"; foreach ($rows as $row) { var_dump($row); } echo "And print \$row for the sake of it\n"; var_dump($row);

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.00916.50
8.3.50.0120.00616.31
8.3.40.0150.00618.70
8.3.30.0100.00318.54
8.3.20.0080.00021.95
8.3.10.0000.00823.54
8.3.00.0040.00419.14
8.2.180.0100.01016.32
8.2.170.0070.00722.96
8.2.160.0070.01422.26
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00717.89
8.2.120.0080.00026.35
8.2.110.0030.00720.49
8.2.100.0070.00417.78
8.2.90.0090.00017.84
8.2.80.0020.00519.23
8.2.70.0040.00417.77
8.2.60.0090.00017.91
8.2.50.0000.01118.10
8.2.40.0070.00020.59
8.2.30.0000.00719.44
8.2.20.0040.00417.94
8.2.10.0020.00517.98
8.2.00.0040.00418.09
8.1.280.0090.00625.92
8.1.270.0040.00423.88
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00622.54
8.1.230.0040.00722.73
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0050.00317.22
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00819.03
8.1.160.0080.00018.95
8.1.150.0030.00619.01
8.1.140.0050.00217.55
8.1.130.0030.00520.25
8.1.120.0050.00317.41
8.1.110.0040.00417.45
8.1.100.0000.00817.37
8.1.90.0000.00717.48
8.1.80.0030.00517.44
8.1.70.0030.00317.42
8.1.60.0000.00917.58
8.1.50.0060.00317.50
8.1.40.0040.00417.57
8.1.30.0030.00717.65
8.1.20.0090.00017.57
8.1.10.0040.00417.58
8.1.00.0040.00417.45
8.0.300.0080.00021.90
8.0.290.0020.00516.75
8.0.280.0070.00018.44
8.0.270.0030.00317.19
8.0.260.0000.00716.82
8.0.250.0000.00716.97
8.0.240.0000.00817.00
8.0.230.0040.00416.94
8.0.220.0000.00716.81
8.0.210.0030.00316.92
8.0.200.0050.00216.94
8.0.190.0050.00316.94
8.0.180.0000.00816.80
8.0.170.0060.00316.96
8.0.160.0030.00516.77
8.0.150.0000.00716.84
8.0.140.0000.00816.73
8.0.130.0030.00313.34
8.0.120.0040.00416.83
8.0.110.0030.00516.79
8.0.100.0040.00416.83
8.0.90.0070.00016.93
8.0.80.0160.00616.82
8.0.70.0040.00416.95
8.0.60.0020.00516.75
8.0.50.0000.00716.71
8.0.30.0080.01017.05
8.0.20.0110.00917.40
8.0.10.0000.00717.01
8.0.00.0120.00716.98
7.4.330.0050.00015.55
7.4.320.0060.00016.53
7.4.300.0060.00016.50
7.4.290.0000.00716.40
7.4.280.0040.00416.35
7.4.270.0030.00316.41
7.4.260.0030.00316.54
7.4.250.0000.00816.42
7.4.240.0040.00416.52
7.4.230.0000.00716.34
7.4.220.0000.00816.40
7.4.210.0090.00616.53
7.4.200.0050.00216.70
7.4.160.0080.00916.51
7.4.140.0140.00717.86
7.4.130.0140.00316.29
7.4.120.0120.00716.53
7.4.110.0060.01016.57
7.4.100.0090.00916.54
7.4.90.0140.00816.63
7.4.80.0160.00619.39
7.4.70.0100.00716.47
7.4.60.0100.00716.35
7.4.50.0110.00216.46
7.4.40.0130.00416.34
7.4.00.0000.01814.91
7.3.330.0000.00513.02
7.3.320.0000.00613.20
7.3.310.0040.00416.31
7.3.300.0000.00616.30
7.3.290.0000.00716.18
7.3.280.0060.01316.29
7.3.260.0120.00716.37
7.3.240.0100.00716.30
7.3.230.0100.00716.65
7.3.210.0090.00916.25
7.3.200.0130.00316.66
7.3.190.0140.00716.57
7.3.180.0070.01016.56
7.3.170.0100.00716.39
7.3.160.0040.01216.36
7.2.330.0110.00716.71
7.2.320.0130.01016.34
7.2.310.0100.01016.68
7.2.300.0070.01316.43
7.2.290.0130.00616.46
7.2.110.0060.01016.69
7.2.60.0060.00616.66
7.2.40.1090.01417.45
7.2.30.1280.01417.50
7.2.20.1010.00917.57
7.2.10.0900.01418.09
7.2.00.1030.01117.74
7.1.200.0080.00415.48
7.1.160.0990.01016.06
7.1.150.1160.01516.81
7.1.140.0980.01016.47
7.1.130.1040.00516.78
7.1.120.0850.01116.74
7.1.110.1340.01516.36
7.1.100.1070.00816.10
7.1.90.1150.00615.97
7.1.80.1270.01416.39
7.1.70.0160.00815.31
7.1.60.0320.01933.15
7.1.50.0350.01432.94
7.1.40.0230.01532.53
7.1.30.0290.01932.54
7.1.20.1010.01132.55
7.1.10.0090.01314.62
7.1.00.0080.00815.00

preferences:
58 ms | 400 KiB | 5 Q