3v4l.org

run code in 300+ PHP versions simultaneously
<?php function questionApplicantsAttendance() { $answer = readline("Do you want to attend our PHP conference? [Y/n]"); return strtolower($answer) == 'y'; } $applicantWillAttend = questionApplicantsAttendance(); if($applicantWillAttend) { echo 'You would have fun'; } else { echo 'You would lose a great opportunity'; } ?>

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.0060.00916.88
8.3.50.0140.00521.08
8.3.40.0100.01018.98
8.3.30.0090.00618.69
8.3.20.0000.00820.38
8.3.10.0050.00321.76
8.3.00.0060.00319.68
8.2.180.0090.00916.63
8.2.170.0140.00022.96
8.2.160.0100.00720.57
8.2.150.0040.00424.18
8.2.140.0000.01124.66
8.2.130.0080.00026.16
8.2.120.0080.00417.50
8.2.110.0060.00322.07
8.2.100.0090.00317.75
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0040.00719.26
8.2.30.0040.00419.86
8.2.20.0080.00017.56
8.2.10.0040.00417.98
8.2.00.0000.00818.06
8.1.280.0150.00625.92
8.1.270.0050.00320.38
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.47
8.1.230.0060.00617.42
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0030.00617.10
8.1.180.0030.00618.10
8.1.170.0000.00818.43
8.1.160.0060.00321.97
8.1.150.0050.00318.68
8.1.140.0000.00917.33
8.1.130.0040.00417.63
8.1.120.0070.00017.36
8.1.110.0000.00817.36
8.1.100.0040.00317.38
8.1.90.0050.00217.27
8.1.80.0080.00017.24
8.1.70.0030.00317.41
8.1.60.0070.00017.55
8.1.50.0030.00517.48
8.1.40.0030.00617.44
8.1.30.0050.00517.58
8.1.20.0000.00817.61
8.1.10.0060.00317.55
8.1.00.0040.00417.45
8.0.300.0030.00518.77
8.0.290.0060.00316.63
8.0.280.0000.00718.26
8.0.270.0030.00317.20
8.0.260.0040.00417.20
8.0.250.0040.00416.99
8.0.240.0050.00316.80
8.0.230.0050.00316.95
8.0.220.0040.00416.94
8.0.210.0000.00716.79
8.0.200.0040.00416.94
8.0.190.0080.00016.82
8.0.180.0050.00316.81
8.0.170.0080.00016.89
8.0.160.0040.00416.82
8.0.150.0050.00316.90
8.0.140.0000.00716.82
8.0.130.0030.00313.39
8.0.120.0080.00016.75
8.0.110.0040.00416.91
8.0.100.0040.00416.77
8.0.90.0070.00016.78
8.0.80.0060.00916.90
8.0.70.0040.00416.69
8.0.60.0040.00416.90
8.0.50.0050.00216.73
8.0.30.0150.00317.02
8.0.20.0090.01217.40
8.0.10.0000.00716.89
8.0.00.0080.00916.71
7.4.330.0000.00515.08
7.4.320.0050.00216.48
7.4.300.0000.00616.45
7.4.290.0000.00716.47
7.4.280.0050.00516.49
7.4.270.0000.00716.48
7.4.260.0030.00316.53
7.4.250.0040.00416.33
7.4.240.0020.00516.42
7.4.230.0050.00216.53
7.4.220.0060.02016.64
7.4.210.0090.00616.54
7.4.200.0080.00016.54
7.4.160.0150.00016.17
7.4.150.0100.00717.40
7.4.140.0130.01517.86
7.4.130.0130.00716.58
7.4.120.0050.01116.61
7.4.110.0060.01216.65
7.4.100.0110.00616.45
7.4.90.0090.01516.54
7.4.80.0160.00619.39
7.4.70.0030.01316.36
7.4.60.0060.01316.49
7.4.50.0040.00416.33
7.4.40.0150.00916.45
7.4.30.0090.00916.27
7.4.00.0110.00414.57
7.3.330.0000.00613.18
7.3.320.0060.00013.15
7.3.310.0000.00716.34
7.3.300.0040.00416.32
7.3.290.0000.00716.38
7.3.280.0070.01016.33
7.3.270.0140.00317.40
7.3.260.0100.00716.48
7.3.250.0110.00816.39
7.3.240.0160.00616.36
7.3.230.0090.00916.52
7.3.210.0120.00316.41
7.3.200.0100.00616.35
7.3.190.0060.00916.29
7.3.180.0150.00616.50
7.3.170.0120.00616.52
7.3.160.0190.00016.61
7.3.10.0040.01116.62
7.3.00.0160.01216.55
7.2.330.0070.01016.60
7.2.320.0130.00716.63
7.2.310.0110.00716.49
7.2.300.0100.00616.58
7.2.290.0130.00916.55
7.2.130.0130.01316.55
7.2.120.0030.01616.75
7.2.110.0030.01416.44
7.2.100.0210.00416.60
7.2.90.0130.01316.62
7.2.80.0200.00416.62
7.2.70.0460.01816.45
7.2.60.0160.00816.70
7.2.50.0260.01216.39
7.2.40.0250.00616.85
7.2.30.0250.00916.37
7.2.20.0190.01216.46
7.2.10.0180.01316.61
7.2.00.0090.01217.95
7.1.250.0110.00315.63
7.1.200.0040.01115.41
7.1.100.0070.00717.73
7.1.70.0000.01616.86
7.1.60.0100.01420.03
7.1.50.0070.01716.52
7.1.00.0030.07722.48
7.0.200.0030.00616.49
7.0.60.0070.05319.93
7.0.50.0070.03717.88
7.0.40.0030.05720.13
7.0.30.0270.03720.06
7.0.20.0270.07720.09
7.0.10.0070.08720.09
7.0.00.0200.07020.19
5.6.280.0000.03321.10
5.6.210.0030.09020.67
5.6.200.0100.03318.18
5.6.190.0070.09320.64
5.6.180.2630.03720.48
5.6.170.0300.07320.51
5.6.160.0030.06320.54
5.6.150.0000.05318.19
5.6.140.0070.08018.17
5.6.130.0000.04318.18
5.6.120.0130.07721.00
5.6.110.0070.08020.97
5.6.100.0030.08721.00
5.6.90.0130.05320.98
5.6.80.0030.08020.53
5.6.70.3500.04020.38
5.5.350.0270.07720.41
5.5.340.0000.07018.05
5.5.330.0100.05020.13
5.5.320.3670.04320.27
5.5.310.0270.08720.34
5.5.300.0130.07017.97
5.5.290.0100.08017.91
5.5.280.0070.03720.77
5.5.270.0200.07320.73
5.5.260.0070.08020.64
5.5.250.0100.07720.66
5.5.240.0270.06320.26
5.4.450.0170.07719.33
5.4.440.0400.05319.48
5.4.430.0670.05719.48
5.4.420.0770.05319.56
5.4.410.0630.05019.46
5.4.400.0700.05019.01
5.4.390.0500.05718.84
5.4.380.0430.06018.84
5.4.370.0430.05718.87
5.4.360.0570.04719.15
5.4.350.0430.06018.83
5.4.340.0470.05719.35
5.4.320.0500.05719.13
5.4.310.0470.05719.30
5.4.300.0770.05019.32
5.4.290.0500.05019.21
5.4.280.0500.05719.14
5.4.270.0630.05319.15
5.4.260.0630.04719.23
5.4.250.0700.05319.15
5.4.240.0670.04718.99
5.4.230.0700.05719.14
5.4.220.0600.06019.22
5.4.210.0530.04719.23
5.4.200.0530.04719.14
5.4.190.0630.05319.20
5.4.180.0600.04719.14
5.4.170.0570.06718.82
5.4.160.0670.03719.24
5.4.150.0570.05018.81
5.4.140.0530.05016.56
5.4.130.0500.05016.30
5.4.120.0470.05016.57
5.4.110.0570.05016.27
5.4.100.0500.05716.52
5.4.90.0530.05316.27
5.4.80.0570.04716.26
5.4.70.0000.04316.34
5.4.60.0330.04716.33
5.4.50.0030.07016.16
5.4.40.0300.06316.38
5.4.30.0300.03716.53
5.4.20.0330.03316.22

preferences:
58.23 ms | 401 KiB | 5 Q