3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test(){ if(true){ if(false){ return 'Yes'; } if(false){ return 'Sure'; } return 'Something weird happened'; }else{ return 'No'; } } echo test();

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.5.70.0080.00816.73
8.5.60.0110.00716.80
8.5.50.0060.00118.31
8.5.30.0110.00618.99
8.5.20.0040.00421.13
8.5.10.0130.00420.27
8.5.00.0120.01021.40
8.4.210.0050.00419.55
8.4.180.0150.00719.67
8.4.170.0120.00921.96
8.4.160.0160.01123.69
8.4.150.0060.00616.82
8.4.140.0100.01117.54
8.4.130.0110.00918.87
8.4.120.0120.00623.98
8.4.110.0110.00918.80
8.4.100.0110.00617.56
8.4.90.0110.00918.42
8.4.80.0040.00417.79
8.4.70.0130.00717.58
8.4.60.0060.00520.67
8.4.50.0130.00518.79
8.4.40.0070.00417.75
8.4.30.0100.00018.48
8.4.20.0130.00719.89
8.4.10.0000.00822.08
8.3.300.0050.00618.50
8.3.290.0110.00820.62
8.3.280.0130.00618.45
8.3.270.0110.00916.71
8.3.260.0140.00516.68
8.3.250.0030.00419.00
8.3.240.0130.00617.11
8.3.230.0120.00716.53
8.3.220.0100.00917.14
8.3.210.0120.00616.64
8.3.200.0030.00616.49
8.3.190.0090.00917.14
8.3.180.0130.00516.98
8.3.170.0120.00618.92
8.3.160.0070.01016.79
8.3.150.0130.00617.09
8.3.140.0030.01518.25
8.3.130.0060.00616.70
8.3.120.0150.00020.81
8.3.110.0160.00316.75
8.3.100.0000.00924.06
8.3.90.0080.00026.77
8.3.80.0030.00716.63
8.3.70.0090.00916.63
8.3.60.0110.00722.08
8.3.50.0090.00920.06
8.3.40.0130.00321.90
8.3.30.0090.00618.73
8.3.20.0000.00824.18
8.3.10.0030.00524.66
8.3.00.0080.00026.16
8.2.300.0170.00522.14
8.2.290.0060.00520.55
8.2.280.0090.01016.38
8.2.270.0140.00717.02
8.2.260.0090.00916.25
8.2.250.0120.00316.59
8.2.240.0090.00017.10
8.2.230.0040.01120.94
8.2.220.0030.00537.54
8.2.210.0040.00426.77
8.2.200.0040.00416.50
8.2.190.0110.00416.75
8.2.180.0140.00025.92
8.2.170.0090.00618.84
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0090.00020.47
8.2.100.0130.00317.59
8.2.90.0030.00517.62
8.2.80.0000.00818.79
8.2.70.0000.00917.49
8.2.60.0040.00417.63
8.2.50.0040.00418.04
8.2.40.0080.00018.22
8.2.30.0050.00217.98
8.2.20.0040.00420.31
8.2.10.0050.00218.04
8.2.00.0030.00519.11
8.1.340.0100.01117.78
8.1.330.0100.00821.74
8.1.320.0120.00615.92
8.1.310.0080.00616.05
8.1.300.0130.00620.13
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0050.00323.87
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0070.00418.97
8.1.230.0070.00417.58
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0080.00017.13
8.1.190.0070.00516.86
8.1.180.0000.00918.10
8.1.170.0000.00817.62
8.1.160.0030.00318.66
8.1.150.0070.00018.62
8.1.140.0000.00717.29
8.1.130.0000.00718.63
8.1.120.0000.00717.33
8.1.110.0000.00717.21
8.1.100.0070.00017.21
8.1.90.0050.00217.21
8.1.80.0070.00317.22
8.1.70.0120.00417.22
8.1.60.0150.00417.43
8.1.50.0100.01017.43
8.1.40.0130.00417.34
8.1.30.0090.00917.57
8.1.20.0140.00517.50
8.1.10.0150.00217.35
8.1.00.0090.00617.34
8.0.300.0040.00418.77
8.0.290.0020.00516.63
8.0.280.0000.00718.39
8.0.270.0000.00716.77
8.0.260.0000.00818.29
8.0.250.0050.00316.96
8.0.240.0030.00316.81
8.0.230.0030.00316.88
8.0.220.0030.00316.69
8.0.210.0050.00516.82
8.0.200.0040.00916.80
8.0.190.0150.00016.91
8.0.180.0100.00616.75
8.0.170.0060.00616.83
8.0.160.0150.00016.71
8.0.150.0100.00516.57
8.0.140.0110.00516.73
8.0.130.0130.00316.80
8.0.120.0100.00716.63
8.0.110.0100.00316.79
8.0.100.0130.00016.63
8.0.90.0100.00016.80
8.0.80.0150.00016.74
8.0.70.0110.00416.72
8.0.60.0140.00216.71
8.0.50.0160.00016.81
8.0.30.0060.01116.64
8.0.20.0090.00616.64
8.0.10.0130.00016.79
7.4.330.0050.00015.55
7.4.320.0070.00016.51
7.4.300.0120.00316.25
7.4.290.0130.00316.46
7.4.280.0100.00416.52
7.4.270.0080.00816.27
7.4.260.0070.00716.43
7.4.250.0170.00016.31
7.4.240.0100.00516.48
7.4.230.0100.00816.47
7.4.220.0070.00816.48
7.4.210.0000.01316.48
7.4.200.0110.00416.38
7.4.190.0120.00316.53
7.4.180.0110.00416.46
7.4.160.0060.00316.49
7.4.150.0090.00316.56
7.4.140.0070.00316.32
7.4.130.0060.00616.11
7.4.120.0110.00016.32
7.4.110.0020.00916.35
7.4.100.0000.01216.24
7.4.90.0070.00416.30
7.4.80.0070.00316.38
7.4.70.0070.00316.07
7.4.60.0100.00016.16
7.4.50.0000.01016.23
7.4.40.0030.00816.12
7.4.30.0050.00516.21
7.4.20.0050.00516.23
7.4.10.0000.01216.31
7.4.00.0060.00616.16

preferences:
103.35 ms | 1252 KiB | 5 Q