3v4l.org

run code in 300+ PHP versions simultaneously
<?phpwhile (true) {        $input = fgets(STDIN, 3);        if ($input == 42) {                break;        } else {                echo $input;        }}?>

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.0070.00716.38
8.3.50.0110.00622.77
8.3.40.0090.00618.59
8.3.30.0090.00618.88
8.3.20.0040.00420.22
8.3.10.0080.00023.58
8.3.00.0040.00417.38
8.2.180.0110.01118.29
8.2.170.0100.01022.96
8.2.160.0140.00420.27
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0110.00726.16
8.2.120.0040.00420.95
8.2.110.0060.00322.16
8.2.100.0040.00817.78
8.2.90.0000.00719.09
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0000.00717.68
8.2.50.0000.00818.07
8.2.40.0030.00618.16
8.2.30.0030.00317.83
8.2.20.0080.00017.55
8.2.10.0040.00417.79
8.2.00.0080.00017.57
8.1.280.0150.00325.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00524.02
8.1.230.0040.00819.04
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00917.11
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0000.00918.52
8.1.160.0100.00021.93
8.1.150.0000.00718.73
8.1.140.0000.00817.29
8.1.130.0040.00417.79
8.1.120.0070.00017.32
8.1.110.0000.00717.30
8.1.100.0040.00417.20
8.1.90.0040.00417.32
8.1.80.0030.00317.33
8.1.70.0000.00717.25
8.1.60.0050.00317.41
8.1.50.0040.00417.28
8.1.40.0030.00617.42
8.1.30.0030.00517.52
8.1.20.0000.00817.42
8.1.10.0050.00317.40
8.1.00.0070.00017.38
8.0.300.0000.00718.77
8.0.290.0030.00616.58
8.0.280.0030.00318.41
8.0.270.0070.00017.05
8.0.260.0000.00717.21
8.0.250.0030.00316.88
8.0.240.0000.00716.77
8.0.230.0000.00716.87
8.0.220.0030.00316.66
8.0.210.0050.00316.73
8.0.200.0030.00316.70
8.0.190.0040.00416.64
8.0.180.0040.00416.74
8.0.170.0040.00416.66
8.0.160.0070.00016.62
8.0.150.0070.00316.79
8.0.140.0050.00316.64
8.0.130.0000.00713.32
8.0.120.0040.00416.71
8.0.110.0080.00016.79
8.0.100.0000.00716.55
8.0.90.0030.00316.73
8.0.80.0070.01016.74
8.0.70.0080.00016.57
8.0.60.0040.00416.66
8.0.50.0040.00416.79
8.0.30.0140.00517.01
8.0.20.0090.01017.40
8.0.10.0040.00416.69
8.0.00.0150.00516.66
7.4.330.0060.00015.15
7.4.320.0030.00316.36
7.4.300.0050.00216.46
7.4.290.0000.00716.48
7.4.280.0030.00616.46
7.4.270.0000.00716.35
7.4.260.0030.00316.44
7.4.250.0040.00416.42
7.4.240.0060.00116.42
7.4.230.0030.00516.54
7.4.220.0070.01216.45
7.4.210.0100.01016.54
7.4.200.0000.00716.26
7.4.160.0070.01016.30
7.4.150.0060.01217.40
7.4.140.0130.00417.86
7.4.130.0070.01216.36
7.4.120.0120.00616.37
7.4.110.0110.01116.36
7.4.100.0120.00616.30
7.4.90.0030.01416.38
7.4.80.0040.01819.39
7.4.70.0070.01016.40
7.4.60.0030.01316.52
7.4.50.0000.00516.22
7.4.40.0060.01316.27
7.4.30.0100.00716.29
7.3.330.0050.00313.14
7.3.320.0030.00313.10
7.3.310.0050.00215.95
7.3.300.0000.00715.97
7.3.290.0000.01316.16
7.3.280.0110.00716.12
7.3.270.0120.00617.40
7.3.260.0120.00616.48
7.3.250.0110.00916.27
7.3.240.0130.00716.53
7.3.230.0070.01016.39
7.3.210.0100.01316.02
7.3.200.0120.00619.39
7.3.190.0130.00316.33
7.3.180.0080.00816.23
7.3.170.0160.00616.27
7.3.160.0030.01616.23
7.2.330.0090.00916.39
7.2.320.0030.01316.55
7.2.310.0100.00716.32
7.2.300.0030.01316.18
7.2.290.0040.01516.48
5.4.320.0060.03912.45
5.4.310.0080.04212.45
5.4.300.0080.03812.45
5.4.290.0060.03812.45
5.4.280.0070.03412.35
5.4.270.0040.03912.34
5.4.260.0060.03812.34
5.4.250.0050.03912.34
5.4.240.0080.03812.35
5.4.230.0060.03912.34
5.4.220.0060.03612.34
5.4.210.0080.03412.34
5.4.200.0080.03912.34
5.4.190.0080.04112.33
5.4.180.0080.03712.33
5.4.170.0090.03412.34
5.4.160.0060.03812.34
5.4.150.0070.03612.34
5.4.140.0070.03812.02
5.4.130.0070.04012.01
5.4.120.0070.04211.96
5.4.110.0060.03611.97
5.4.100.0050.04011.96
5.4.90.0070.04011.96
5.4.80.0060.04011.96
5.4.70.0040.03511.96
5.4.60.0060.03611.96
5.4.50.0060.04011.96
5.4.40.0070.03711.95
5.4.30.0070.03411.95
5.4.20.0060.03811.95
5.4.10.0060.03511.95
5.4.00.0050.03911.43

preferences:
30.24 ms | 401 KiB | 5 Q