3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 3; $result = ($a == 3) ? "yay" : "nope"; // Returns yay or nope if $a == 3 var_dump($result);

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.40.0100.00718.59
8.3.30.0070.00718.97
8.3.20.0070.00020.21
8.3.10.0080.00021.97
8.3.00.0040.00422.18
8.2.170.0160.00622.96
8.2.160.0070.00719.07
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0080.00826.16
8.2.120.0030.00619.36
8.2.110.0060.00322.00
8.2.100.0090.00319.51
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0040.00419.94
8.2.30.0050.00218.04
8.2.20.0040.00417.52
8.2.10.0050.00217.65
8.2.00.0030.00617.66
8.1.270.0000.00922.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.98
8.1.230.0040.00718.91
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0080.00017.53
8.1.180.0040.00418.66
8.1.170.0030.00718.54
8.1.160.0000.00722.18
8.1.150.0040.00418.59
8.1.140.0040.00417.43
8.1.130.0070.00017.73
8.1.120.0030.00317.33
8.1.110.0040.00417.46
8.1.100.0000.00717.43
8.1.90.0040.00417.34
8.1.80.0070.00017.41
8.1.70.0070.00017.38
8.1.60.0030.00617.47
8.1.50.0040.00417.51
8.1.40.0070.00017.46
8.1.30.0060.00317.51
8.1.20.0060.00317.62
8.1.10.0000.00817.40
8.1.00.0030.00517.31
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0030.00518.33
8.0.270.0000.00717.25
8.0.260.0000.00816.75
8.0.250.0030.00316.82
8.0.240.0000.00716.86
8.0.230.0040.00416.83
8.0.220.0030.00516.75
8.0.210.0000.00616.73
8.0.200.0000.00816.84
8.0.190.0000.00716.87
8.0.180.0000.00716.82
8.0.170.0040.00416.81
8.0.160.0000.00716.83
8.0.150.0060.00316.75
8.0.140.0040.00316.68
8.0.130.0060.00013.17
8.0.120.0030.00616.81
8.0.110.0000.00716.87
8.0.100.0000.00716.82
8.0.90.0080.00016.66
8.0.80.0130.00316.80
8.0.70.0030.00516.85
8.0.60.0040.00416.76
8.0.50.0040.00416.85
8.0.30.0140.00716.90
8.0.20.0080.01017.40
8.0.10.0070.00016.86
8.0.00.0130.00616.65
7.4.330.0060.00015.02
7.4.320.0000.00716.41
7.4.300.0060.00016.55
7.4.290.0000.00816.35
7.4.280.0000.00616.48
7.4.270.0030.00316.54
7.4.260.0000.00616.38
7.4.250.0040.00416.46
7.4.240.0020.00516.60
7.4.230.0030.00316.43
7.4.220.0070.01116.52
7.4.210.0100.00916.54
7.4.200.0070.00016.48
7.4.190.0000.00816.72
7.4.160.0100.00616.60
7.4.150.0000.01717.40
7.4.140.0110.00717.86
7.4.130.0040.01316.59
7.4.120.0050.01216.43
7.4.110.0070.01016.57
7.4.100.0100.01416.59
7.4.90.0030.01416.39
7.4.80.0060.01219.39
7.4.70.0060.01016.36
7.4.60.0110.00516.51
7.4.50.0000.00816.46
7.4.40.0030.01022.77
7.4.30.0060.00916.58
7.4.00.0000.01415.00
7.3.330.0020.00213.17
7.3.320.0000.00512.96
7.3.310.0000.00816.14
7.3.300.0030.00316.29
7.3.290.0070.00716.19
7.3.280.0090.00816.22
7.3.270.0110.00717.40
7.3.260.0100.00916.48
7.3.250.0140.00816.28
7.3.240.0140.00316.47
7.3.230.0090.01316.39
7.3.210.0090.00816.23
7.3.200.0160.00619.39
7.3.190.0100.01316.34
7.3.180.0060.01016.12
7.3.170.0090.00616.27
7.3.160.0090.00616.40
7.3.120.0130.00317.15
7.3.110.0000.01317.15
7.3.100.0000.00817.15
7.3.90.0040.00817.15
7.3.80.0030.01417.15
7.3.70.0000.01417.15
7.3.60.0100.00717.15
7.3.50.0070.00717.15
7.3.40.0030.00917.15
7.3.30.0030.00717.15
7.3.20.0070.00717.15
7.3.10.0050.01116.95
7.3.00.0050.00916.77
7.2.330.0170.00016.44
7.2.320.0030.01316.65
7.2.310.0030.01316.21
7.2.300.0040.01316.61
7.2.290.0000.01616.31
7.2.240.0040.01117.15
7.2.230.0070.00717.15
7.2.220.0040.01417.15
7.2.210.0070.00417.15
7.2.200.0060.00917.15
7.2.190.0090.00617.15
7.2.180.0080.00817.15
7.2.170.0000.01617.15
7.2.160.0090.00917.15
7.2.150.0070.01117.15
7.2.140.0040.01117.15
7.2.130.0030.00816.96
7.2.120.0110.00417.04
7.2.110.0030.00717.01
7.2.100.0060.00917.02
7.2.90.0020.01216.86
7.2.80.0100.00316.81
7.2.70.0050.01016.94
7.2.60.0070.00816.88
7.2.50.0070.00917.00
7.2.40.0040.01217.06
7.2.30.0020.01216.88
7.2.20.0070.01016.99
7.2.10.0100.00217.01
7.2.00.0050.01016.94
7.1.330.0080.00417.15
7.1.320.0000.00917.15
7.1.310.0030.01317.15
7.1.300.0100.00617.15
7.1.290.0090.00617.15
7.1.280.0140.00017.15
7.1.270.0060.01017.15
7.1.260.0030.01217.15
7.1.250.0050.00716.41
7.1.200.0040.00815.61
7.1.70.0000.00716.90
7.1.60.0090.01219.82
7.1.50.0070.01616.93
7.1.00.0130.06722.32
7.0.200.0000.01016.71
7.0.140.0000.07722.07
7.0.60.0030.04019.91
7.0.50.0070.03717.82
7.0.40.0130.08019.90
7.0.30.0300.03720.13
7.0.20.0330.06020.13
7.0.10.0300.04020.02
7.0.00.0070.08720.20
5.6.280.0000.07720.82
5.6.210.0070.08720.47
5.6.200.0130.06718.18
5.6.190.0130.08320.42
5.6.180.3400.04720.57
5.6.170.0300.06320.71
5.6.160.0100.04720.38
5.6.150.0070.08018.16
5.6.140.0130.03718.16
5.6.130.0030.05018.12
5.6.120.0070.08320.98
5.6.110.0070.06320.99
5.6.100.0130.06721.10
5.6.90.0130.06721.01
5.6.80.0130.07020.39
5.6.70.0270.08020.35
5.5.350.0230.02720.33
5.5.340.0070.08317.92
5.5.330.0100.04020.56
5.5.320.0270.07020.20
5.5.310.0400.06320.21
5.5.300.0100.05318.03
5.5.290.0000.04717.96
5.5.280.0100.05020.79
5.5.270.0030.04320.71
5.5.260.0030.08720.88
5.5.250.0100.08320.68
5.5.240.0100.05720.06
5.4.450.0570.07719.14
5.4.440.0770.06019.13
5.4.430.0730.05319.51
5.4.420.0170.04319.41
5.4.410.0700.06019.37
5.4.400.1030.05718.77
5.4.390.1230.06018.50
5.4.380.0200.06018.72
5.4.370.0130.05318.44
5.4.360.0330.03318.69
5.4.350.0170.05718.63
5.4.340.0170.05018.61
5.4.320.0040.03912.46
5.4.310.0070.03712.45
5.4.300.0050.03912.45
5.4.290.0050.04012.45
5.4.280.0040.03712.35
5.4.270.0060.04312.35
5.4.260.0030.08019.02
5.4.250.0030.05319.02
5.4.240.0130.06018.62
5.4.230.0070.05719.01
5.4.220.0200.05318.88
5.4.210.0030.07719.01
5.4.200.0230.04318.75
5.4.190.0170.06318.92
5.4.180.0130.04718.97
5.4.170.0030.05718.69
5.4.160.0130.05018.92
5.4.150.0130.04718.82
5.4.140.0000.05716.28
5.4.130.0070.06316.23
5.4.120.0070.05316.27
5.4.110.0070.05016.47
5.4.100.0030.06716.38
5.4.90.0100.05016.40
5.4.80.0100.05716.23
5.4.70.0130.06316.26
5.4.60.0130.05716.25
5.4.50.0130.05016.45
5.4.40.0070.05016.25
5.4.30.0130.04316.38
5.4.20.0130.04716.38
5.4.10.0070.05316.25
5.4.00.0070.05315.73
5.3.290.0070.03812.80
5.3.280.0070.05314.58
5.3.270.0170.04714.49
5.3.260.0100.05014.75
5.3.250.0030.05714.61
5.3.240.0100.05714.65
5.3.230.0130.05314.69
5.3.220.0200.04714.40
5.3.210.0030.06014.43
5.3.200.0070.05014.43
5.3.190.0170.06314.55
5.3.180.0130.04714.44
5.3.170.0200.05314.25
5.3.160.0170.04714.57
5.3.150.0130.07314.65
5.3.140.0100.06314.55
5.3.130.0070.05014.70
5.3.120.0070.05314.31
5.3.110.0070.05714.63
5.3.100.0070.05014.14
5.3.90.0130.04314.03
5.3.80.0070.05014.18
5.3.70.0100.04714.03
5.3.60.0100.06713.69
5.3.50.0100.04713.82
5.3.40.0030.05313.64
5.3.30.0030.05313.79
5.3.20.0070.05013.55
5.3.10.0030.05013.42
5.3.00.0130.04313.52
5.2.170.0070.03711.17
5.2.160.0100.03711.15
5.2.150.0070.04011.02
5.2.140.0030.04010.89
5.2.130.0100.03711.11
5.2.120.0030.04011.10
5.2.110.0100.03711.01
5.2.100.0030.04311.00
5.2.90.0030.04311.11
5.2.80.0100.05711.08
5.2.70.0130.04711.00
5.2.60.0030.04311.06
5.2.50.0000.04710.93
5.2.40.0100.03310.89
5.2.30.0070.03710.85
5.2.20.0100.04010.96
5.2.10.0170.03310.94
5.2.00.0030.04010.79
5.1.60.0130.03310.01
5.1.50.0070.03010.18
5.1.40.0030.0379.74
5.1.30.0030.05710.33
5.1.20.0100.03310.52
5.1.10.0130.03310.25
5.1.00.0070.0379.91
5.0.50.0100.0238.60
5.0.40.0000.0308.46
5.0.30.0070.0378.18
5.0.20.0000.0308.25
5.0.10.0070.0238.36
5.0.00.0070.0408.21
4.4.90.0000.0237.27
4.4.80.0100.0177.27
4.4.70.0030.0207.27
4.4.60.0000.0237.27
4.4.50.0000.0237.27
4.4.40.0030.0477.27
4.4.30.0030.0237.27
4.4.20.0000.0237.27
4.4.10.0070.0177.27
4.4.00.0000.0377.26
4.3.110.0000.0337.26
4.3.100.0130.0207.26
4.3.90.0070.0177.26
4.3.80.0030.0307.26
4.3.70.0130.0107.26
4.3.60.0030.0207.26
4.3.50.0030.0337.26
4.3.40.0030.0307.26
4.3.30.0000.0277.26
4.3.20.0070.0177.26
4.3.10.0030.0207.26
4.3.00.0070.0176.77

preferences:
35.58 ms | 400 KiB | 5 Q