3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testCaseTrue { public function __toString() { return '1'; } } class testCaseFalse { public function __toString() { return '0'; } } $test_true = new testCaseTrue (); $test_false = new testCaseFalse (); echo $test_true ? 'test_true is true, ' : 'test_true is false, '; echo $test_false ? 'test_false is true ' : 'test_false is false ';

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.0100.00316.63
8.3.50.0070.00922.85
8.3.40.0070.00718.75
8.3.30.0170.00018.95
8.3.20.0060.00920.09
8.3.10.0080.00023.46
8.3.00.0080.00019.25
8.2.180.0120.00616.63
8.2.170.0040.01122.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0050.00321.03
8.2.110.0060.00321.00
8.2.100.0080.00417.72
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0000.00818.22
8.2.30.0040.00418.17
8.2.20.0030.00517.75
8.2.10.0000.00718.01
8.2.00.0000.00817.55
8.1.280.0160.00025.92
8.1.270.0060.00323.91
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0000.01123.89
8.1.230.0080.00320.90
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0070.00317.36
8.1.190.0060.00317.22
8.1.180.0070.00018.10
8.1.170.0030.00618.54
8.1.160.0070.00022.01
8.1.150.0060.00318.80
8.1.140.0050.00517.29
8.1.130.0030.00317.81
8.1.120.0040.00317.48
8.1.110.0000.00717.38
8.1.100.0040.00417.36
8.1.90.0000.00917.44
8.1.80.0030.00417.36
8.1.70.0000.00617.38
8.1.60.0040.00417.62
8.1.50.0070.00017.54
8.1.40.0040.00417.51
8.1.30.0040.00417.54
8.1.20.0060.00317.60
8.1.10.0000.00817.59
8.1.00.0000.00817.37
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0070.00018.45
8.0.270.0030.00317.30
8.0.260.0060.00017.27
8.0.250.0070.00016.86
8.0.240.0070.00016.87
8.0.230.0000.00716.94
8.0.220.0090.00016.89
8.0.210.0030.00316.86
8.0.200.0030.00316.86
8.0.190.0040.00416.96
8.0.180.0040.00416.83
8.0.170.0000.00816.73
8.0.160.0070.00016.88
8.0.150.0040.00416.87
8.0.140.0000.01116.91
8.0.130.0000.00613.30
8.0.120.0070.00016.74
8.0.110.0000.00816.85
8.0.100.0000.00716.82
8.0.90.0080.00016.95
8.0.80.0060.00916.93
8.0.70.0000.00816.74
8.0.60.0070.00016.91
8.0.50.0050.00316.91
8.0.30.0070.01216.98
8.0.20.0110.00817.40
8.0.10.0000.00716.80
8.0.00.0110.00516.65
7.4.330.0000.00615.02
7.4.320.0030.00316.50
7.4.300.0000.00616.48
7.4.290.0030.00316.47
7.4.280.0070.00016.45
7.4.270.0000.00716.48
7.4.260.0000.00616.53
7.4.250.0080.00016.51
7.4.240.0040.00316.55
7.4.230.0070.00016.45
7.4.220.0070.01116.54
7.4.210.0060.00916.61
7.4.200.0030.00616.57
7.4.160.0000.01616.61
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0100.00716.35
7.4.120.0110.00616.44
7.4.110.0080.00916.26
7.4.100.0140.00316.49
7.4.90.0080.00816.35
7.4.80.0090.00919.39
7.4.70.0160.00016.53
7.4.60.0080.01416.50
7.4.50.0080.00016.27
7.4.40.0030.01316.29
7.4.30.0170.00016.50
7.4.00.0080.00714.87
7.3.330.0050.00013.18
7.3.320.0000.00613.16
7.3.310.0030.00316.08
7.3.300.0060.00016.19
7.3.290.0070.00716.15
7.3.280.0090.00616.18
7.3.270.0100.00617.40
7.3.260.0090.00916.37
7.3.250.0100.00716.19
7.3.240.0070.01016.15
7.3.230.0050.01116.39
7.3.210.0130.00316.17
7.3.200.0060.01319.39
7.3.190.0060.01216.21
7.3.180.0070.01016.20
7.3.170.0110.00516.30
7.3.160.0120.00316.32
7.3.120.0080.00314.95
7.3.110.0060.00614.66
7.3.100.0070.00714.69
7.3.90.0040.01414.46
7.3.80.0060.00914.46
7.3.70.0130.00014.62
7.3.60.0060.00614.79
7.3.50.0040.00414.62
7.3.40.0090.00614.79
7.3.30.0030.00614.69
7.3.20.0070.00416.70
7.3.10.0060.00616.48
7.3.00.0120.00616.20
7.2.330.0070.01116.52
7.2.320.0100.01016.58
7.2.310.0070.01016.46
7.2.300.0070.01116.57
7.2.290.0130.00316.63
7.2.250.0030.01414.94
7.2.240.0120.00614.83
7.2.230.0080.01114.68
7.2.220.0040.00714.81
7.2.210.0090.00614.98
7.2.200.0030.01015.03
7.2.190.0040.01115.07
7.2.180.0040.01115.08
7.2.170.0090.00614.96
7.2.130.0130.00616.00
7.2.120.0140.00916.08
7.2.110.0100.01316.40
7.2.100.0180.00315.94
7.2.90.0170.00615.93
7.2.80.0170.00316.29
7.2.70.0160.01216.16
7.2.60.0140.00716.12
7.2.50.0100.01516.79
7.2.40.0190.00816.21
7.2.30.0260.00416.25
7.2.20.0080.01116.21
7.2.10.0150.01516.25
7.2.00.0120.00917.93
7.1.330.0100.00715.59
7.1.320.0060.00315.73
7.1.310.0110.00415.86
7.1.300.0130.00015.79
7.1.290.0070.01015.49
7.1.280.0100.00615.65
7.1.270.0030.00915.47
7.1.260.0060.01015.51
7.1.250.0060.01314.98
7.1.100.0000.01117.66
7.1.70.0000.00917.06
7.1.60.0100.01319.40
7.1.50.0040.02216.98
7.1.00.0070.07322.46
7.0.200.0070.00716.63
7.0.140.0030.07322.00
7.0.60.0000.08019.84
7.0.50.0070.04017.83
7.0.40.0130.04720.11
7.0.30.0700.04720.24
7.0.20.0470.07020.17
7.0.10.0100.03720.12
7.0.00.0000.08320.24
5.6.280.0030.07321.04
5.6.210.0100.06020.77
5.6.200.0070.06318.18
5.6.190.0100.08320.52
5.6.180.0230.08020.65
5.6.170.0230.09320.47
5.6.160.0070.04020.52
5.6.150.0100.08018.19
5.6.140.0000.04318.11
5.6.130.0130.08018.18
5.6.120.0130.08020.99
5.6.110.0030.07321.02
5.6.100.0070.04020.96
5.6.90.0070.03720.98
5.6.80.0130.07320.48
5.5.350.0370.06720.37
5.5.340.0100.06318.05
5.5.330.0000.04720.43
5.5.320.0230.06020.30
5.5.310.0130.05020.37
5.5.300.0100.04018.00
5.5.290.0030.05717.99
5.5.280.0170.07320.99
5.5.270.0130.03720.76
5.5.260.0000.04720.73
5.5.250.0100.08020.59
5.5.240.0200.05320.08
5.4.450.0270.07319.46
5.4.440.0400.06719.64
5.4.430.0270.06019.40
5.4.420.0300.04019.17
5.4.410.0270.06719.16
5.4.400.0270.06019.06
5.4.390.0330.07019.23
5.4.380.0270.05719.36
5.4.370.0330.04019.22
5.4.360.0270.07319.06
5.4.350.0230.07719.16
5.4.340.0300.04719.22
5.4.320.0270.04019.08
5.4.310.0230.04018.95
5.4.300.0270.04018.85
5.4.290.0370.05019.19
5.4.280.0300.06319.16
5.4.270.0300.07018.85
5.4.260.0270.03719.24
5.4.250.0270.03719.07
5.4.240.0230.07319.30
5.4.230.0230.05718.84
5.4.220.0300.05019.15
5.4.210.0330.06719.16
5.4.200.0330.07019.13
5.4.190.0370.05319.30
5.4.180.0200.04019.08
5.4.170.0330.03318.98
5.4.160.0270.03719.20
5.4.150.0300.07319.04
5.4.140.0370.06016.38
5.4.130.0230.04316.41
5.4.120.0300.04316.40
5.4.110.0270.04716.56
5.4.100.0230.03716.59
5.4.90.0270.07316.58
5.4.80.0270.06716.48
5.4.70.0270.04716.59
5.4.60.0370.06316.34
5.4.50.0370.05316.16
5.4.40.0230.04716.16
5.4.30.0300.06316.53
5.4.20.0300.03716.53
5.4.10.0300.05716.34
5.4.00.0330.05015.79
5.3.290.0300.06314.82
5.3.280.0270.04314.59
5.3.270.0300.06014.52
5.3.260.0330.06714.69
5.3.250.0300.05314.69
5.3.240.0400.05014.77
5.3.230.0330.06714.61
5.3.220.0270.03314.80
5.3.210.0330.06714.47
5.3.200.0300.04714.65
5.3.190.0230.08014.79
5.3.180.0270.06314.72
5.3.170.0270.07314.55
5.3.160.0370.04714.46
5.3.150.0300.06314.65
5.3.140.0330.07014.58
5.3.130.0300.04714.54
5.3.120.0330.06014.54
5.3.110.0370.06014.52
5.3.100.0300.06714.04
5.3.90.0270.04014.10
5.3.80.0230.04014.18
5.3.70.0330.02714.13
5.3.60.0270.07313.99
5.3.50.0370.04013.92
5.3.40.0330.06714.17
5.3.30.0370.03713.86
5.3.20.0370.05313.60
5.3.10.0270.04313.66
5.3.00.0330.06713.65
5.2.170.0230.04313.01
5.2.160.0300.03713.01
5.2.150.0200.03713.01
5.2.140.0200.03313.01
5.2.130.0170.03713.01
5.2.120.0230.05313.01
5.2.110.0300.05313.01
5.2.100.0200.06013.01
5.2.90.0230.02713.01
5.2.80.0270.05713.01
5.2.70.0270.05013.01
5.2.60.0200.03313.01
5.2.50.0230.03313.01
5.2.40.0200.03013.01
5.2.30.0230.04713.01
5.2.20.0200.04313.01
5.2.10.0130.05313.01
5.2.00.0330.03713.01
5.1.60.0330.03313.01
5.1.50.0170.05013.01
5.1.40.0300.04013.01
5.1.30.0230.05013.01
5.1.20.0170.05013.01
5.1.10.0200.03013.01
5.1.00.0200.03013.01
5.0.50.0200.03713.01
5.0.40.0070.02313.01
5.0.30.0100.05013.01
5.0.20.0030.03313.01
5.0.10.0170.04013.01
5.0.00.0100.06713.01
4.4.90.0130.03313.01
4.4.80.0070.02013.01
4.4.70.0070.02713.01
4.4.60.0070.02313.01
4.4.50.0130.01713.01
4.4.40.0130.02313.01
4.4.30.0130.03313.01
4.4.20.0170.02313.01
4.4.10.0070.02013.01
4.4.00.0070.03013.01
4.3.110.0130.03013.01
4.3.100.0200.02713.01
4.3.90.0100.03013.01
4.3.80.0130.04313.01
4.3.70.0070.02313.01
4.3.60.0100.01713.01
4.3.50.0070.02013.01
4.3.40.0100.05313.01
4.3.30.0030.03013.01
4.3.20.0030.02713.01
4.3.10.0100.03313.01
4.3.00.0030.02313.01

preferences:
56.01 ms | 401 KiB | 5 Q