3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Ternarny Operator $admin = false; //run second if first evaluates to true //? is the ternary operator, equivalent to if //else is : echo ($admin===true) ? 'You are an admin' : 'You are not an admin';

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.0030.01016.38
8.3.50.0130.00717.97
8.3.40.0060.00918.54
8.3.30.0100.01018.99
8.3.20.0000.00720.29
8.3.10.0000.00921.68
8.3.00.0060.00319.26
8.2.180.0100.01018.16
8.2.170.0100.00322.96
8.2.160.0100.00620.52
8.2.150.0120.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00419.48
8.2.110.0060.00319.14
8.2.100.0040.00817.63
8.2.90.0080.00019.00
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0000.00718.16
8.2.30.0090.00018.04
8.2.20.0040.00417.55
8.2.10.0070.00017.89
8.2.00.0030.00517.60
8.1.280.0040.01125.92
8.1.270.0090.00018.92
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00822.20
8.1.230.0030.00917.66
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.51
8.1.160.0000.00721.81
8.1.150.0000.00718.72
8.1.140.0040.00417.37
8.1.130.0060.00317.81
8.1.120.0000.00717.43
8.1.110.0000.00717.27
8.1.100.0040.00417.40
8.1.90.0030.00317.33
8.1.80.0000.00717.27
8.1.70.0000.00717.37
8.1.60.0000.00917.50
8.1.50.0040.00417.40
8.1.40.0050.00317.45
8.1.30.0060.00317.61
8.1.20.0080.00017.45
8.1.10.0040.00417.50
8.1.00.0000.00717.32
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.28
8.0.270.0040.00417.23
8.0.260.0060.00017.15
8.0.250.0060.00016.85
8.0.240.0030.00316.92
8.0.230.0000.00816.83
8.0.220.0030.00316.68
8.0.210.0030.00316.72
8.0.200.0000.00716.91
8.0.190.0030.00616.93
8.0.180.0040.00416.79
8.0.170.0030.00616.77
8.0.160.0040.00416.90
8.0.150.0000.00716.75
8.0.140.0000.00816.68
8.0.130.0000.00813.27
8.0.120.0000.00816.61
8.0.110.0040.00416.85
8.0.100.0030.00616.68
8.0.90.0000.00716.68
8.0.80.0030.01416.81
8.0.70.0040.00416.74
8.0.60.0030.00516.68
8.0.50.0070.00016.67
8.0.30.0090.01016.84
8.0.20.0090.00917.40
8.0.10.0040.00416.83
8.0.00.0170.00716.79
7.4.330.0000.00515.03
7.4.320.0000.00616.63
7.4.300.0030.00516.60
7.4.290.0000.00816.48
7.4.280.0080.00016.44
7.4.270.0030.00316.44
7.4.260.0030.00316.56
7.4.250.0040.00416.57
7.4.240.0040.00416.53
7.4.230.0000.00716.41
7.4.220.0140.00316.54
7.4.210.0090.00616.55
7.4.200.0080.00016.70
7.4.160.0140.00916.47
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0070.01016.55
7.4.120.0090.00816.59
7.4.110.0100.00716.45
7.4.100.0220.00316.62
7.4.90.0120.00416.54
7.4.80.0090.01219.39
7.4.70.0090.00816.46
7.4.60.0040.01316.38
7.4.50.0000.00816.54
7.4.40.0040.01416.41
7.4.30.0060.01316.56
7.4.00.0080.00414.84
7.3.330.0030.00312.96
7.3.320.0130.00012.98
7.3.310.0000.00716.02
7.3.300.0000.00716.25
7.3.290.0050.01116.20
7.3.280.0110.00716.21
7.3.270.0120.00817.40
7.3.260.0100.00716.31
7.3.250.0080.00916.46
7.3.240.0100.01216.34
7.3.230.0100.01016.39
7.3.210.0110.01116.29
7.3.200.0090.01219.39
7.3.190.0100.00716.61
7.3.180.0130.00316.22
7.3.170.0110.00716.29
7.3.160.0080.00816.48
7.2.330.0100.01016.23
7.2.320.0110.01116.67
7.2.310.0130.00316.38
7.2.300.0070.01116.73
7.2.290.0070.01016.66
7.2.00.0060.00619.11
7.1.200.0060.00815.68
7.1.100.0060.00617.96
7.1.70.0060.00917.16
7.1.60.0100.01019.50
7.1.50.0070.01516.52
7.1.00.0100.07022.36
7.0.200.0250.00714.87
7.0.140.0070.07022.09
7.0.60.0130.07319.93
7.0.50.0000.04317.88
7.0.40.0070.04320.02
7.0.30.0430.06320.00
7.0.20.0270.09020.19
7.0.10.0100.04320.13
7.0.00.0030.08320.30
5.6.280.0070.07021.09
5.6.210.0070.07320.47
5.6.200.0130.06718.20
5.6.190.0100.03720.33
5.6.180.0200.08320.41
5.6.170.0370.06320.53
5.6.160.0030.05320.49
5.6.150.0030.06718.18
5.6.140.0030.08018.16
5.6.130.0070.03718.21
5.6.120.0030.08320.97
5.6.110.0100.07321.11
5.6.100.0070.08720.88
5.6.90.0130.07021.08
5.6.80.0000.04720.36
5.6.70.4600.04020.43
5.5.350.0300.08020.37
5.5.340.0070.05017.98
5.5.330.0000.04320.21
5.5.320.0230.04720.13
5.5.310.0400.06320.16
5.5.300.0030.08317.92
5.5.290.0030.05717.95
5.5.280.0170.06020.68
5.5.270.0170.07020.78
5.5.260.0130.07720.63
5.5.250.0130.07320.46
5.5.240.0270.07320.25
5.4.450.0170.06719.48
5.4.440.1100.05719.49
5.4.430.0800.05019.48
5.4.420.1130.07319.53
5.4.410.0230.04319.00
5.4.400.0930.06018.66
5.4.390.1170.04718.56
5.4.380.0900.06018.50
5.4.370.1030.05018.46
5.4.360.0970.06018.72
5.4.350.0970.07318.68
5.4.340.1130.07318.72
5.4.320.1130.08718.58
5.4.310.0900.07718.68
5.4.300.1170.06318.70
5.4.290.1170.06718.72
5.4.280.1100.07018.57
5.4.270.1230.07018.67
5.4.260.1130.06018.66
5.4.250.1000.06718.58
5.4.240.1170.06718.58
5.4.230.0930.07018.60
5.4.220.1170.06018.61
5.4.210.1230.06318.69
5.4.200.1130.06016.64
5.4.190.1070.07018.70
5.4.180.0970.05018.68
5.4.170.1200.04718.71
5.4.160.0730.06318.60
5.4.150.0830.05718.46
5.4.140.0870.05316.13
5.4.130.1000.03716.22
5.4.120.0770.06316.21
5.4.110.0900.05316.26
5.4.100.0970.05016.04
5.4.90.0870.06016.18
5.4.80.1030.04716.27
5.4.70.0730.06016.32
5.4.60.1200.07016.32
5.4.50.0930.06016.32
5.4.40.0900.05016.00
5.4.30.0700.07016.18
5.4.20.1100.05316.23
5.4.10.0770.05016.27
5.4.00.0870.05715.69
5.3.290.1070.07014.64
5.3.280.0930.07314.50
5.3.270.0870.07314.61
5.3.260.0830.06014.65
5.3.250.0930.05014.68
5.3.240.1000.04314.58
5.3.230.1170.06014.57
5.3.220.0970.08314.54
5.3.210.1330.07714.55
5.3.200.1400.06314.51
5.3.190.0830.05014.50
5.3.180.0900.04014.46
5.3.170.0700.06014.63
5.3.160.1130.05014.54
5.3.150.0970.05314.49
5.3.140.1170.06014.50
5.3.130.1000.06314.52
5.3.120.1000.06014.50
5.3.110.1100.05714.47
5.3.100.1130.06014.08
5.3.90.0970.05313.96
5.3.80.1030.06313.95
5.3.70.1100.06313.95
5.3.60.0900.06314.07
5.3.50.1000.07314.03
5.3.40.1070.04713.89
5.3.30.0700.06713.98
5.3.20.0970.08313.71
5.3.10.1030.05313.59
5.3.00.0900.05713.61
5.2.170.0630.05011.09
5.2.160.0900.04311.19
5.2.150.0600.04711.17
5.2.140.0770.04311.14
5.2.130.0870.04011.07
5.2.120.1070.04011.07
5.2.110.0670.04711.15
5.2.100.0770.04011.13
5.2.90.0570.05011.13
5.2.80.0830.05011.13
5.2.70.0670.05311.08
5.2.60.0730.04711.18
5.2.50.0900.03710.93
5.2.40.0630.05010.94
5.2.30.0800.04311.10
5.2.20.0130.03710.94
5.2.10.0200.05310.86
5.2.00.0530.04710.76
5.1.60.0630.04010.05
5.1.50.0670.05010.10
5.1.40.0730.04710.09
5.1.30.0870.03310.50
5.1.20.0830.04710.32
5.1.10.0830.03010.16
5.1.00.0570.04010.11
5.0.50.0400.0338.66
5.0.40.0200.0308.52
5.0.30.0400.0478.23
5.0.20.0330.0238.27
5.0.10.0300.0308.37
5.0.00.0270.0438.23
4.4.90.0370.0205.91
4.4.80.0330.0235.91
4.4.70.0300.0205.88
4.4.60.0300.0235.88
4.4.50.0370.0375.86
4.4.40.0270.0375.91
4.4.30.0470.0275.86
4.4.20.0370.0335.95
4.4.10.0570.0235.91
4.4.00.0230.0375.98
4.3.110.0170.0335.81
4.3.100.0470.0305.74
4.3.90.0330.0235.79
4.3.80.0400.0335.80
4.3.70.0330.0205.81
4.3.60.0200.0235.76
4.3.50.0300.0305.80
4.3.40.0400.0305.79
4.3.30.0170.0234.55
4.3.20.0230.0234.52
4.3.10.0170.0204.47
4.3.00.0100.0306.80

preferences:
46.95 ms | 400 KiB | 5 Q