3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileContent = <<<'PHP' input ----- expected output PHP; echo $fileContent; echo PHP_EOL . PHP_EOL . PHP_EOL . PHP_EOL; [$input, $expectedOutput] = explode("\n-----\n", $fileContent); echo $input; echo PHP_EOL . PHP_EOL; echo $expectedOutput; echo PHP_EOL . PHP_EOL;

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.4.20.0030.01618.77
8.4.10.0040.00420.43
8.3.150.0140.00717.06
8.3.140.0110.00718.75
8.3.130.0080.00018.19
8.3.120.0040.00420.66
8.3.110.0100.00620.94
8.3.100.0080.00024.06
8.3.90.0060.00326.77
8.3.80.0070.00319.36
8.3.70.0060.01516.58
8.3.60.0110.00418.56
8.3.50.0080.01124.37
8.3.40.0150.00318.71
8.3.30.0070.01118.79
8.3.20.0070.00024.18
8.3.10.0100.00324.66
8.3.00.0070.00026.16
8.2.260.0030.00616.48
8.2.250.0040.00416.43
8.2.240.0060.00317.20
8.2.230.0040.00422.58
8.2.220.0050.00337.54
8.2.210.0080.00626.77
8.2.200.0060.00318.88
8.2.190.0090.00616.58
8.2.180.0070.01125.92
8.2.170.0120.00619.02
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0110.00018.89
8.2.110.0030.00622.06
8.2.100.0070.00417.91
8.2.90.0040.00417.75
8.2.80.0040.00418.74
8.2.70.0060.00318.04
8.2.60.0040.00418.16
8.2.50.0080.00018.10
8.2.40.0030.00519.42
8.2.30.0000.00819.22
8.2.20.0040.00417.99
8.2.10.0040.00419.24
8.2.00.0070.00019.36
8.1.310.0070.01018.42
8.1.300.0070.00417.62
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00323.76
8.1.230.0070.00420.88
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0080.00319.09
8.1.180.0000.00918.10
8.1.170.0040.00418.27
8.1.160.0000.00718.95
8.1.150.0070.00018.77
8.1.140.0000.00718.69
8.1.130.0040.00420.13
8.1.120.0040.00417.30
8.1.110.0060.00317.37
8.1.100.0000.00717.42
8.1.90.0040.00417.39
8.1.80.0100.00017.40
8.1.70.0060.00317.38
8.1.60.0080.00017.52
8.1.50.0040.00417.47
8.1.40.0060.00317.46
8.1.30.0080.00017.63
8.1.20.0040.00417.64
8.1.10.0030.00617.61
8.1.00.0040.00417.45
8.0.300.0000.00818.77
8.0.290.0090.00016.75
8.0.280.0030.00318.36
8.0.270.0050.00216.77
8.0.260.0040.00418.49
8.0.250.0000.00717.04
8.0.240.0000.00817.02
8.0.230.0040.00416.84
8.0.220.0030.00316.90
8.0.210.0040.00316.93
8.0.200.0000.00816.84
8.0.190.0000.00816.98
8.0.180.0070.00016.90
8.0.170.0040.00416.96
8.0.160.0040.00416.91
8.0.150.0000.00816.84
8.0.140.0000.00816.88
8.0.130.0030.00313.35
8.0.120.0070.00016.88
8.0.110.0000.00716.76
8.0.100.0000.00816.91
8.0.90.0000.00716.76
8.0.80.0140.00516.90
8.0.70.0020.00516.93
8.0.60.0040.00416.93
8.0.50.0040.00416.68
8.0.30.0110.00616.98
8.0.20.0100.01017.13
8.0.10.0040.00416.97
8.0.00.0120.00916.98
7.4.330.0050.00015.55
7.4.320.0000.00716.58
7.4.300.0050.00216.54
7.4.290.0030.00316.43
7.4.280.0070.00016.43
7.4.270.0030.00316.63
7.4.260.0030.00313.16
7.4.250.0000.00716.39
7.4.240.0000.00716.43
7.4.230.0070.00016.64
7.4.220.0060.00216.45
7.4.210.0070.00916.49
7.4.200.0040.00416.39
7.4.130.0100.00816.41
7.4.120.0120.00616.51
7.4.110.0070.01116.44
7.4.100.0130.01016.34
7.4.90.0060.01116.68
7.4.80.0100.01116.98
7.4.70.0130.00716.94
7.4.60.0100.01016.95
7.4.50.0090.01116.93
7.4.40.0110.00917.08
7.4.30.0090.01117.02
7.4.20.0110.00917.02
7.4.10.0110.01016.96
7.4.00.0110.00817.01
7.3.330.0080.00016.25
7.3.320.0060.00013.17
7.3.310.0060.00016.27
7.3.300.0070.00016.37
7.3.290.0080.00916.35
7.3.280.0040.01116.26
7.3.260.0140.00316.33
7.3.240.0070.01016.46
7.3.230.0070.01016.47
7.3.210.0090.00916.42
7.3.200.0080.01217.02
7.3.190.0110.00817.03
7.3.180.0100.01117.00
7.3.170.0100.01017.06
7.3.160.0110.00917.02
7.3.150.0090.01117.01
7.3.140.0110.01017.04
7.3.130.0100.01017.06
7.3.120.0100.00916.96
7.3.110.0150.01017.05
7.3.100.0110.00817.00
7.3.90.0090.00916.96
7.3.80.0120.00816.95
7.3.70.0120.00816.96
7.3.60.0140.00716.95
7.3.50.0110.00816.99
7.3.40.0130.00716.95
7.3.30.0100.01017.05
7.3.20.0090.01216.99
7.3.10.0100.00917.06
7.3.00.0140.00717.04
7.2.330.0120.00616.66
7.2.320.0110.01116.96
7.2.310.0120.00817.15
7.2.300.0110.00917.07
7.2.290.0140.01117.06
7.2.280.0130.00816.90
7.2.270.0140.00717.00
7.2.260.0110.01017.11
7.2.250.0140.01017.07
7.2.240.0140.01117.11
7.2.230.0100.00917.12
7.2.220.0100.00917.09
7.2.210.0100.01017.12
7.2.200.0110.01117.02
7.2.190.0140.00817.11
7.2.180.0110.01017.08
7.2.170.0160.00616.99
7.2.160.0120.01417.08
7.2.150.0120.01017.14
7.2.140.0110.01017.07
7.2.130.0170.00917.10
7.2.120.0150.01017.11
7.2.110.0100.01117.10
7.2.100.0110.01117.10
7.2.90.0100.01117.07
7.2.80.0190.01217.05
7.2.70.0130.00717.08
7.2.60.0080.01017.14
7.2.50.0100.00917.07
7.2.40.0130.00717.12
7.2.30.0120.00917.16
7.2.20.0150.01017.09
7.2.10.0290.00817.12
7.2.00.0080.01317.02

preferences:
36.73 ms | 403 KiB | 5 Q