3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (0 == 0) ? 0 : (0 == 1) ? 1 : 2;

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.4.10.0170.00017.79
8.3.140.0030.00616.67
8.3.130.0030.00618.47
8.3.120.0040.00420.36
8.3.110.0000.00818.46
8.3.100.0090.00016.62
8.3.90.0120.00326.77
8.3.80.0100.00019.36
8.3.70.0180.00318.14
8.3.60.0110.00418.29
8.3.50.0120.01022.85
8.3.40.0090.00618.58
8.3.30.0080.00618.84
8.3.20.0040.00420.04
8.3.10.0040.00421.63
8.3.00.0040.00419.12
8.2.260.0100.00718.86
8.2.250.0000.00916.62
8.2.240.0090.00918.57
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0100.00026.77
8.2.200.0040.00418.88
8.2.190.0080.00616.58
8.2.180.0070.01416.38
8.2.170.0150.00422.96
8.2.160.0140.00420.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00620.82
8.2.110.0090.00022.15
8.2.100.0050.00717.84
8.2.90.0000.00720.60
8.2.80.0000.00817.97
8.2.70.0050.00317.91
8.2.60.0040.00417.68
8.2.50.0070.00018.10
8.2.40.0060.00322.14
8.2.30.0000.00718.05
8.2.20.0000.00717.63
8.2.10.0030.00617.92
8.2.00.0070.00017.36
8.1.300.0090.00616.32
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00022.25
8.1.230.0060.00321.02
8.1.220.0080.00017.74
8.1.210.0050.00318.82
8.1.200.0030.00617.12
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0050.00318.45
8.1.160.0070.00021.93
8.1.150.0000.00818.71
8.1.140.0000.00717.31
8.1.130.0070.00017.63
8.1.120.0000.00817.31
8.1.110.0060.00317.31
8.1.100.0000.00717.14
8.1.90.0000.00717.28
8.1.80.0000.00717.20
8.1.70.0030.00317.26
8.1.60.0090.00617.39
8.1.50.0000.00817.42
8.1.40.0040.00417.37
8.1.30.0040.00417.49
8.1.20.0000.00817.44
8.1.10.0060.00317.36
8.1.00.0000.00817.19
8.0.300.0000.00719.89
8.0.290.0000.00816.63
8.0.280.0070.00018.30
8.0.270.0000.00816.66
8.0.260.0030.00317.14
8.0.250.0030.00316.84
8.0.240.0040.00416.92
8.0.230.0000.00616.90
8.0.220.0070.00016.80
8.0.210.0060.00016.70
8.0.200.0000.00616.83
8.0.190.0000.00816.89
8.0.180.0030.00416.73
8.0.170.0000.00816.70
8.0.160.0040.00416.91
8.0.150.0030.00316.82
8.0.140.0080.00016.74
8.0.130.0000.00613.23
8.0.120.0040.00416.79
8.0.110.0040.00416.79
8.0.100.0050.00216.80
8.0.90.0040.00416.73
8.0.80.0090.00716.70
8.0.70.0070.00016.72
8.0.60.0040.00416.86
8.0.50.0040.00416.63
8.0.30.0100.00917.10
8.0.20.0060.01217.40
8.0.10.0050.00316.91
8.0.00.0100.00716.93
7.4.330.0000.00515.03
7.4.320.0000.00616.36
7.4.300.0040.00416.39
7.4.290.0070.00016.32
7.4.280.0040.00416.33
7.4.270.0000.00716.39
7.4.260.0070.00016.42
7.4.250.0030.00516.25
7.4.240.0020.00616.37
7.4.230.0000.00716.34
7.4.220.0110.00716.46
7.4.210.0100.01016.53
7.4.200.0070.00016.44
7.4.160.0040.01116.28
7.4.150.0130.00317.40
7.4.140.0050.01417.86
7.4.130.0130.00716.46
7.4.120.0100.00816.45
7.4.110.0080.00816.43
7.4.100.0160.00316.29
7.4.90.0170.00316.26
7.4.80.0080.01219.39
7.4.70.0080.01216.43
7.4.60.0170.01116.23
7.4.50.0040.00416.42
7.4.40.0070.01016.62
7.4.30.0030.01316.38
7.4.00.0070.01115.00
7.3.330.0000.00613.04
7.3.320.0000.00512.95
7.3.310.0030.00316.19
7.3.300.0000.00716.18
7.3.290.0070.00016.18
7.3.280.0090.00616.17
7.3.270.0150.00317.40
7.3.260.0150.00316.22
7.3.250.0080.01116.30
7.3.240.0070.01516.13
7.3.230.0070.01116.39
7.3.210.0060.00916.52
7.3.200.0090.01219.39
7.3.190.0130.01016.41
7.3.180.0100.01016.14
7.3.170.0060.01016.27
7.3.160.0100.00716.24
7.2.330.0110.00716.35
7.2.320.0140.00316.63
7.2.310.0070.01016.42
7.2.300.0030.01316.42
7.2.290.0080.00916.38
7.2.60.0070.00716.72
7.2.00.0090.00319.30
7.1.200.0080.00415.58
7.1.100.0070.00417.78
7.1.70.0180.00316.54
7.1.60.0090.01519.57
7.1.50.0000.01416.77
7.1.00.0100.06722.24
7.0.200.0080.00016.72
7.0.140.0030.04321.93
7.0.60.0100.08320.02
7.0.50.0000.05017.87
7.0.40.0030.04719.90
7.0.30.0170.04720.16
7.0.20.0230.04020.33
7.0.10.0070.08320.18
7.0.00.0100.07320.19
5.6.280.0070.07020.81
5.6.210.0030.04720.72
5.6.200.0130.07718.08
5.6.190.0000.05020.77
5.6.180.0230.06020.79
5.6.170.0400.07320.33
5.6.160.0070.04320.44
5.6.150.0000.04018.07
5.6.140.0030.08018.20
5.6.130.0070.07018.20
5.6.120.0070.08321.03
5.6.110.0130.07721.01
5.6.100.0070.04021.10
5.6.90.0130.07721.00
5.6.80.0070.04020.37
5.5.350.0270.07720.42
5.5.340.0070.08017.88
5.5.330.0100.04320.21
5.5.320.0170.04720.32
5.5.310.0330.05020.15
5.5.300.0130.07317.98
5.5.290.0000.09017.98
5.5.280.0070.05020.68
5.5.270.0070.06720.85
5.5.260.0100.07720.85
5.5.250.0000.04320.68
5.5.240.0070.03720.13
5.4.450.0800.05019.27
5.4.440.0630.06019.10
5.4.430.0170.04719.29
5.4.420.0200.04719.30
5.4.410.0130.05319.00
5.4.400.0070.07718.77
5.4.390.0130.05018.72
5.4.380.0170.04718.57
5.4.370.0200.04718.49
5.4.360.0170.05718.57
5.4.350.0130.06018.51
5.4.340.0200.05318.64
5.4.320.0200.05018.55
5.4.310.0270.04318.69
5.4.300.0230.04718.56
5.4.290.0070.06318.67
5.4.280.0100.06318.61
5.4.270.0300.04318.64
5.4.260.0130.05718.48
5.4.250.0230.05018.44
5.4.240.0230.05018.77
5.4.230.0200.05018.47
5.4.220.0200.05718.48
5.4.210.0170.05018.48
5.4.200.0170.04716.64
5.4.190.0170.05018.54
5.4.180.0230.05018.70
5.4.170.0130.06018.54
5.4.160.0170.05718.54
5.4.150.0400.04718.70
5.4.140.0270.04316.32
5.4.130.0100.05716.21
5.4.120.0070.06016.30
5.4.110.0170.04716.17
5.4.100.0170.05016.13
5.4.90.0200.05316.21
5.4.80.0230.05016.09
5.4.70.0230.04716.08
5.4.60.0200.04716.14
5.4.50.0170.05016.22
5.4.40.0230.04716.09
5.4.30.0200.04716.33
5.4.20.0200.05016.31
5.4.10.0100.05716.27
5.4.00.0070.05715.61
5.3.290.0100.06014.71
5.3.280.0200.05014.57
5.3.270.0130.05714.51
5.3.260.0230.05014.64
5.3.250.0130.06014.56
5.3.240.0170.05014.61
5.3.230.0230.04714.50
5.3.220.0130.05714.57
5.3.210.0130.05714.47
5.3.200.0200.04714.46
5.3.190.0200.05014.65
5.3.180.0270.04314.65
5.3.170.0200.04714.61
5.3.160.0270.04314.54
5.3.150.0300.04014.58
5.3.140.0200.04714.44
5.3.130.0270.04714.55
5.3.120.0230.05014.52
5.3.110.0100.06014.52
5.3.100.0170.05313.94
5.3.90.0270.04014.11
5.3.80.0230.04313.96
5.3.70.0200.04714.00
5.3.60.0330.03714.09
5.3.50.0230.04713.86
5.3.40.0200.04713.93
5.3.30.0200.05013.89
5.3.20.0230.04013.62
5.3.10.0170.05013.59
5.3.00.0230.04313.54
5.2.170.0170.04011.18
5.2.160.0200.03311.20
5.2.150.0170.04011.22
5.2.140.0070.05011.12
5.2.130.0270.03011.25
5.2.120.0100.04711.13
5.2.110.0100.04311.05
5.2.100.0170.03711.13
5.2.90.0100.04311.25
5.2.80.0200.03711.25
5.2.70.0100.04311.05
5.2.60.0130.04310.96
5.2.50.0130.04310.97
5.2.40.0100.04011.05
5.2.30.0100.04310.92
5.2.20.0130.03710.92
5.2.10.0100.04010.85
5.2.00.0100.04310.93
5.1.60.0100.03310.13
5.1.50.0130.03310.07
5.1.40.0130.03310.06
5.1.30.0130.03310.36
5.1.20.0130.03310.54
5.1.10.0070.04010.14
5.1.00.0170.03010.13
5.0.50.0200.0178.58
5.0.40.0170.0178.42
5.0.30.0100.0408.21
5.0.20.0070.0278.32
5.0.10.0100.0238.20
5.0.00.0070.0438.22
4.4.90.0100.0175.94
4.4.80.0070.0235.90
4.4.70.0070.0205.84
4.4.60.0070.0205.91
4.4.50.0030.0235.99
4.4.40.0070.0335.88
4.4.30.0100.0175.86
4.4.20.0100.0176.00
4.4.10.0030.0235.95
4.4.00.0070.0335.85
4.3.110.0100.0205.84
4.3.100.0030.0235.77
4.3.90.0070.0205.78
4.3.80.0070.0335.79
4.3.70.0070.0205.81
4.3.60.0070.0205.86
4.3.50.0070.0205.91
4.3.40.0130.0275.87
4.3.30.0100.0174.68
4.3.20.0030.0234.68
4.3.10.0030.0234.68
4.3.00.0100.0236.85

preferences:
72.94 ms | 403 KiB | 5 Q