3v4l.org

run code in 300+ PHP versions simultaneously
<?php $out = $a > 9 && $a < 15 ? "option1" : $a < 5 ? "option2" : "option3"; $out = $a > 9 && $a < 15 ? "option1" : ($a < 5 ? "option2" : "option3"); ?>

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.0150.00418.30
8.3.50.0100.01021.92
8.3.40.0170.00318.59
8.3.30.0040.01418.46
8.3.20.0060.00318.66
8.3.10.0050.00320.67
8.3.00.0050.00323.70
8.2.180.0000.01416.63
8.2.170.0140.00022.96
8.2.160.0100.00320.50
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0070.00021.12
8.2.110.0060.00319.39
8.2.100.0060.00617.78
8.2.90.0080.00019.01
8.2.80.0000.00917.97
8.2.70.0030.00617.25
8.2.60.0050.00319.36
8.2.50.0050.00218.16
8.2.40.0060.00320.40
8.2.30.0040.00419.01
8.2.20.0040.00417.50
8.2.10.0000.00817.42
8.2.00.0040.00417.54
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0050.00521.02
8.1.230.0040.00719.08
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0060.00317.11
8.1.180.0000.00718.10
8.1.170.0040.00418.36
8.1.160.0070.00018.66
8.1.150.0040.00320.13
8.1.140.0040.00417.36
8.1.130.0030.00517.84
8.1.120.0060.00317.35
8.1.110.0030.00617.25
8.1.100.0070.00017.22
8.1.90.0040.00417.21
8.1.80.0040.00417.27
8.1.70.0030.00317.28
8.1.60.0050.00317.44
8.1.50.0030.00517.28
8.1.40.0040.00417.37
8.1.30.0080.00017.33
8.1.20.0000.00817.50
8.1.10.0000.00717.36
8.1.00.0000.01017.25
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0000.00717.14
8.0.260.0030.00316.77
8.0.250.0000.00816.89
8.0.240.0000.00716.76
8.0.230.0060.00016.85
8.0.220.0000.00616.86
8.0.210.0070.00016.82
8.0.200.0060.00016.82
8.0.190.0040.00416.86
8.0.180.0070.00016.88
8.0.170.0000.00816.85
8.0.160.0030.00316.82
8.0.150.0000.00716.73
8.0.140.0050.00316.78
8.0.130.0030.00313.21
8.0.120.0000.00816.73
8.0.110.0040.00416.80
8.0.100.0080.00016.68
8.0.90.0000.00716.81
8.0.80.0040.01116.72
8.0.70.0040.00416.87
8.0.60.0000.00716.86
8.0.50.0000.00716.68
8.0.30.0130.00917.08
8.0.20.0130.00717.40
8.0.10.0040.00416.92
8.0.00.0090.00816.56
7.4.330.0000.00514.84
7.4.320.0000.00616.44
7.4.300.0030.00316.47
7.4.290.0030.00316.55
7.4.280.0040.00416.50
7.4.270.0070.00016.57
7.4.260.0050.00013.20
7.4.250.0040.00416.35
7.4.240.0050.00216.49
7.4.230.0000.00716.39
7.4.220.0070.01516.40
7.4.210.0070.00716.50
7.4.200.0030.00316.64
7.4.190.0040.00416.74
7.4.160.0090.00616.73
7.4.150.0110.01117.40
7.4.140.0060.01417.86
7.4.130.0040.01316.44
7.4.120.0110.00616.52
7.4.110.0070.01016.38
7.4.100.0000.01616.64
7.4.90.0100.01316.43
7.4.80.0070.01019.39
7.4.70.0060.01016.63
7.4.60.0090.01016.57
7.4.50.0000.00816.43
7.4.40.0070.00722.52
7.4.30.0040.01316.49
7.4.00.0070.01014.69
7.3.330.0030.00313.01
7.3.320.0000.00513.09
7.3.310.0070.00016.11
7.3.300.0000.00716.30
7.3.290.0090.00616.22
7.3.280.0060.01216.24
7.3.270.0130.00317.40
7.3.260.0160.00518.24
7.3.250.0090.00816.30
7.3.240.0130.00316.46
7.3.230.0110.00616.39
7.3.210.0070.01016.48
7.3.200.0090.01319.39
7.3.190.0020.01516.23
7.3.180.0090.00916.16
7.3.170.0120.00916.27
7.3.160.0060.01016.30
7.3.120.0040.01214.52
7.2.330.0110.00716.49
7.2.320.0120.01216.44
7.2.310.0070.01016.64
7.2.300.0090.00916.61
7.2.290.0100.01016.43
7.2.00.0000.01119.43
7.1.100.0000.01417.71
7.1.70.0000.00917.14
7.1.60.0110.01419.40
7.1.50.0130.01316.80
7.1.00.0030.03322.54
7.0.200.0000.00816.84
7.0.140.0030.07322.07
7.0.60.0330.07319.85
7.0.50.0100.06317.77
7.0.40.0070.04020.39
7.0.30.0270.05720.00
7.0.20.0370.05320.30
7.0.10.0030.06320.16
7.0.00.0070.04020.32
5.6.280.0100.06721.09
5.6.210.0070.08320.46
5.6.200.0130.07718.19
5.6.190.0030.05720.56
5.6.180.0600.06020.78
5.6.170.0130.04720.50
5.6.160.0070.07318.07
5.6.150.0100.07318.18
5.6.140.0030.06718.21
5.6.130.0030.04718.07
5.6.120.0100.08721.00
5.6.110.0070.04321.11
5.6.100.0070.07320.97
5.6.90.0170.07321.11
5.6.80.0100.07320.50
5.5.350.0130.03020.39
5.5.340.0100.05317.98
5.5.330.0030.06320.07
5.5.320.0170.04720.19
5.5.310.0200.06720.26
5.5.300.0070.07717.98
5.5.290.0200.07317.87
5.5.280.0030.04320.64
5.5.270.0130.07720.79
5.5.260.0070.04720.64
5.5.250.0100.07320.76
5.5.240.0230.07020.36
5.4.450.2100.04719.46
5.4.440.2100.05019.45
5.4.430.2130.04319.53
5.4.420.1870.04019.25
5.4.410.2170.04019.00
5.4.400.1970.03719.06
5.4.390.0930.04319.10
5.4.380.0100.03719.08
5.4.370.0030.04019.09
5.4.360.2070.03718.93
5.4.350.1630.04019.24
5.4.340.1730.04019.16
5.4.320.1900.04318.77
5.4.310.1730.04319.08
5.4.300.1730.04019.23
5.4.290.1870.04318.76
5.4.280.1800.03018.93
5.4.270.1830.03019.14
5.4.260.1900.04319.21
5.4.250.2030.03719.20
5.4.240.1900.03719.12
5.4.230.2270.03719.05
5.4.220.1870.03718.92
5.4.210.2070.03718.77
5.4.200.1730.04319.09
5.4.190.2070.03319.06
5.4.180.1730.04019.23
5.4.170.2070.05018.89
5.4.160.2130.03019.19
5.4.150.2170.04018.89
5.4.140.2170.04016.18
5.4.130.2070.04316.15
5.4.120.2000.04016.21
5.4.110.1970.04316.38
5.4.100.2030.03716.49
5.4.90.1700.03316.39
5.4.80.2000.04016.37
5.4.70.1830.03716.16
5.4.60.2070.04016.45
5.4.50.2100.04016.38
5.4.40.1730.04316.31
5.4.30.1970.04316.45
5.4.20.1870.03316.39
5.4.10.1800.03716.15
5.4.00.2100.03715.61
5.3.290.2030.05014.61
5.3.280.2300.04314.43
5.3.270.2130.04014.44
5.3.260.1970.04014.51
5.3.250.2070.04014.46
5.3.240.2070.04014.55
5.3.230.2070.04314.52
5.3.220.2170.03714.42
5.3.210.2130.03714.55
5.3.200.2030.03714.55
5.3.190.2070.04314.66
5.3.180.1800.03714.66
5.3.170.2030.04314.51
5.3.160.2070.04714.54
5.3.150.2330.04314.58
5.3.140.2000.04714.41
5.3.130.1870.04314.59
5.3.120.2070.04314.39
5.3.110.2070.04314.41
5.3.100.0200.07014.13
5.3.90.0200.08013.86
5.3.80.0230.03713.97
5.3.70.0470.05714.06
5.3.60.0230.07313.85
5.3.50.0230.03713.80
5.3.40.0200.07013.72
5.3.30.0170.03714.00
5.3.20.0200.07313.46
5.3.10.0230.06713.57
5.3.00.0200.05713.43
5.2.170.0170.03010.99
5.2.160.0130.03011.20
5.2.150.0170.03311.23
5.2.140.0130.03311.19
5.2.130.0200.02311.06
5.2.120.0200.04711.04
5.2.110.0200.03011.14
5.2.100.0130.03011.01
5.2.90.0170.03711.12
5.2.80.0130.03311.03
5.2.70.0130.04310.95
5.2.60.0170.02711.12
5.2.50.0130.03010.84
5.2.40.0100.02710.94
5.2.30.0100.03010.82
5.2.20.0170.02710.86
5.2.10.0170.02310.72
5.2.00.0100.03010.57
5.1.60.0130.0239.93
5.1.50.0130.0279.89
5.1.40.0130.0209.92
5.1.30.0070.03010.23
5.1.20.0130.03710.29
5.1.10.0000.03010.00
5.1.00.0170.02310.15
5.0.50.0070.0238.41
5.0.40.0070.0408.30
5.0.30.0100.0278.16
5.0.20.0070.0378.18
5.0.10.0030.0278.09
5.0.00.0070.0308.38
4.4.90.0100.0137.54
4.4.80.0100.0277.54
4.4.70.0070.0177.54
4.4.60.0070.0177.54
4.4.50.0030.0177.54
4.4.40.0100.0277.54
4.4.30.0070.0307.54
4.4.20.0100.0277.54
4.4.10.0070.0207.54
4.4.00.0100.0237.54
4.3.110.0070.0207.54
4.3.100.0130.0207.54
4.3.90.0030.0177.54
4.3.80.0100.0277.54
4.3.70.0070.0177.54
4.3.60.0070.0137.54
4.3.50.0100.0277.54
4.3.40.0030.0237.54
4.3.30.0000.0207.54
4.3.20.0030.0177.54
4.3.10.0000.0207.54
4.3.00.0030.0177.54

preferences:
51.37 ms | 400 KiB | 5 Q