3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 1, 3); if ($a[0] == $a[1]) { print "Must be something else"; } if ($a[0] == $a[2]) { print "This will never execute"; }

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.0040.01118.31
8.3.50.0160.00521.20
8.3.40.0070.00718.63
8.3.30.0070.00720.39
8.3.20.0040.00418.66
8.3.10.0000.00721.07
8.3.00.0030.00323.65
8.2.180.0110.00716.50
8.2.170.0110.00322.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00719.76
8.2.110.0030.00619.40
8.2.100.0030.00918.03
8.2.90.0070.00019.17
8.2.80.0050.00319.27
8.2.70.0000.00817.63
8.2.60.0000.00817.87
8.2.50.0080.00018.07
8.2.40.0000.00918.16
8.2.30.0000.00719.34
8.2.20.0080.00017.56
8.2.10.0040.00417.53
8.2.00.0040.00417.33
8.1.280.0140.00325.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0140.00028.09
8.1.240.0100.00320.73
8.1.230.0080.00320.96
8.1.220.0040.00418.77
8.1.210.0040.00418.95
8.1.200.0040.00417.35
8.1.190.0090.00017.63
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0030.00618.84
8.1.150.0040.00418.59
8.1.140.0030.00617.38
8.1.130.0000.00717.69
8.1.120.0030.00317.50
8.1.110.0000.00817.41
8.1.100.0070.00017.43
8.1.90.0040.00417.43
8.1.80.0040.00417.48
8.1.70.0070.00017.35
8.1.60.0060.00317.61
8.1.50.0040.00417.44
8.1.40.0040.00417.46
8.1.30.0040.00417.55
8.1.20.0040.00417.64
8.1.10.0050.00217.53
8.1.00.0060.00317.53
8.0.300.0000.00820.02
8.0.290.0000.00717.17
8.0.280.0070.00018.45
8.0.270.0040.00417.23
8.0.260.0030.00318.37
8.0.250.0070.00016.82
8.0.240.0070.00016.90
8.0.230.0000.00716.79
8.0.220.0070.00016.78
8.0.210.0000.00916.86
8.0.200.0000.00616.85
8.0.190.0040.00416.86
8.0.180.0070.00316.68
8.0.170.0000.00716.64
8.0.160.0030.00316.77
8.0.150.0050.00316.80
8.0.140.0000.00816.81
8.0.130.0060.00013.21
8.0.120.0070.00016.77
8.0.110.0040.00416.93
8.0.100.0030.00516.77
8.0.90.0000.00716.71
8.0.80.0150.00616.94
8.0.70.0040.00416.79
8.0.60.0040.00416.73
8.0.50.0050.00216.86
8.0.30.0140.00516.76
8.0.20.0130.00617.40
8.0.10.0000.00817.04
8.0.00.0150.00816.74
7.4.330.0000.00516.79
7.4.320.0030.00316.59
7.4.300.0060.00016.59
7.4.290.0000.00716.57
7.4.280.0030.00316.48
7.4.270.0000.00716.50
7.4.260.0000.00513.38
7.4.250.0050.00216.45
7.4.240.0070.00016.59
7.4.230.0070.00016.61
7.4.220.0100.01016.39
7.4.210.0060.01116.54
7.4.200.0000.00716.47
7.4.190.0040.00416.68
7.4.160.0100.01016.30
7.4.150.0170.00017.40
7.4.140.0060.01217.86
7.4.130.0080.01016.59
7.4.120.0100.00716.50
7.4.110.0130.00716.66
7.4.100.0110.00716.39
7.4.90.0190.00616.61
7.4.80.0060.01219.39
7.4.70.0120.01216.52
7.4.60.0030.01316.53
7.4.50.0070.00016.56
7.4.40.0110.00422.77
7.4.30.0000.01616.62
7.4.00.0090.00614.83
7.3.330.0050.00013.17
7.3.320.0030.00313.00
7.3.310.0030.00316.25
7.3.300.0040.00416.27
7.3.290.0030.01016.19
7.3.280.0050.01316.22
7.3.270.0140.00417.40
7.3.260.0140.01018.24
7.3.250.0070.00916.21
7.3.240.0030.01216.25
7.3.230.0080.00816.39
7.3.210.0140.00416.43
7.3.200.0120.00619.39
7.3.190.0060.01416.36
7.3.180.0170.00016.48
7.3.170.0090.00616.37
7.3.160.0120.00316.21
7.3.120.0070.01014.58
7.2.330.0150.00316.64
7.2.320.0150.00716.63
7.2.310.0090.01416.53
7.2.300.0060.00916.69
7.2.290.0090.00616.46
7.2.60.0080.00417.00
7.2.50.0070.00316.79
7.2.00.0030.01419.29
7.1.200.0060.00315.70
7.1.100.0060.00618.19
7.1.70.0070.00417.13
7.1.60.0100.01319.17
7.1.50.0110.00316.75
7.1.00.0070.03722.48
7.0.200.0000.00716.75
7.0.140.0100.06722.09
7.0.120.0030.07022.19
7.0.110.0030.06022.00
7.0.100.0030.06321.95
7.0.90.0070.05322.16
7.0.80.0070.06722.04
7.0.70.0030.07322.04
7.0.60.0030.06022.19
7.0.50.0070.06722.16
7.0.40.0070.04722.03
7.0.30.0070.06722.06
7.0.20.0070.03022.20
7.0.10.0070.04722.07
7.0.00.0070.05721.98
5.6.280.0030.07321.04
5.6.260.0030.06720.96
5.6.250.0000.07720.86
5.6.240.0030.05721.01
5.6.230.0100.07321.09
5.6.220.0000.03721.06
5.6.210.0030.04321.02
5.6.200.0000.07021.07
5.6.190.0000.05321.04
5.6.180.0000.07021.06
5.6.170.0000.04321.01
5.6.160.0130.06321.07
5.6.150.0030.07720.79
5.6.140.0000.08020.93
5.6.130.0030.03020.73
5.6.120.0000.07021.07
5.6.110.0000.03721.06
5.6.100.0000.05721.01
5.6.90.0030.06020.98
5.6.80.0030.07020.43
5.6.70.0000.05020.45
5.6.60.0030.05020.27
5.6.50.0000.06020.39
5.6.40.0000.05020.33
5.6.30.0000.03720.43
5.6.20.0030.03020.27
5.6.10.0070.04720.38
5.6.00.0070.02720.45
5.5.380.0030.05317.54
5.5.370.0000.06717.58
5.5.360.0030.04017.51
5.5.350.0000.04317.62
5.5.340.0000.07317.98
5.5.330.0070.05018.25
5.5.320.0030.06718.13
5.5.310.0030.06017.86
5.5.300.0130.06317.76
5.5.290.0070.03318.02
5.5.280.0030.04318.01
5.5.270.0000.04018.15
5.5.260.0030.07018.02
5.5.250.0030.05317.95
5.5.240.0000.07317.51
5.5.230.0000.07017.23
5.5.220.0030.03017.23
5.5.210.0030.02717.63
5.5.200.0030.07317.12
5.5.190.0000.04717.11
5.5.180.0000.03317.33
5.5.160.0030.02717.20
5.5.150.0000.07017.21
5.5.140.0000.06717.23
5.5.130.0000.07017.45
5.5.120.0030.06317.44
5.5.110.0030.06317.47
5.5.100.0030.07017.02
5.5.90.0030.03717.38
5.5.80.0070.05017.23
5.5.70.0000.06317.22
5.5.60.0000.03017.08
5.5.50.0000.07017.40
5.5.40.0000.04717.23
5.5.30.0070.06317.39
5.5.20.0000.04717.26
5.5.10.0070.06717.22
5.5.00.0100.05017.35
5.4.450.0000.05019.27
5.4.440.0070.04319.30
5.4.430.0000.03319.32
5.4.420.0000.04019.34
5.4.410.0070.06019.16
5.4.400.0000.06719.16
5.4.390.0070.06718.95
5.4.380.0030.03719.02
5.4.370.0000.04719.02
5.4.360.0000.07019.00
5.4.350.0030.04018.94
5.4.340.0000.05018.93
5.4.320.0000.03319.00
5.4.310.0100.05718.98
5.4.300.0070.05718.99
5.4.290.0070.06319.26
5.4.280.0000.05318.95
5.4.270.0030.05318.93
5.4.260.0000.07019.07
5.4.250.0030.05318.97
5.4.240.0100.04018.94
5.4.230.0000.03719.25
5.4.220.0070.02718.99
5.4.210.0000.04019.07
5.4.200.0070.06319.16
5.4.190.0070.05718.93
5.4.180.0000.07019.16
5.4.170.0070.06318.98
5.4.160.0000.06318.92
5.4.150.0000.07018.92
5.4.140.0000.06716.49
5.4.130.0000.04716.48
5.4.120.0070.06016.36
5.4.110.0000.06016.13
5.4.100.0000.06016.12
5.4.90.0070.06316.28
5.4.80.0030.06316.21
5.4.70.0100.05716.21
5.4.60.0030.06016.37
5.4.50.0070.06016.45
5.4.40.0030.04316.53
5.4.30.0030.06316.49
5.4.20.0030.06316.37
5.4.10.0100.06016.32
5.4.00.0000.07015.69
5.3.290.0000.06014.52
5.3.280.0000.05714.50
5.3.270.0030.06714.49
5.3.260.0070.06714.45
5.3.250.0070.05714.61
5.3.240.0030.06714.43
5.3.230.0030.06714.61
5.3.220.0070.06314.66
5.3.210.0000.06714.44
5.3.200.0030.06714.39
5.3.190.0000.07014.39
5.3.180.0030.06314.58
5.3.170.0030.05314.57
5.3.160.0030.06714.43
5.3.150.0000.06714.45
5.3.140.0070.06014.39
5.3.130.0000.07014.33
5.3.120.0030.06714.48
5.3.110.0030.06714.54
5.3.100.0000.05014.05
5.3.90.0000.07014.04
5.3.80.0000.06713.97
5.3.70.0000.06313.93
5.3.60.0000.06713.88
5.3.50.0000.06713.89
5.3.40.0030.06713.83
5.3.30.0030.05013.73
5.3.20.0070.06013.78
5.3.10.0000.06313.53
5.3.00.0030.05713.49
5.2.170.0000.05011.08
5.2.160.0000.05311.21
5.2.150.0000.05311.04
5.2.140.0070.05011.30
5.2.130.0000.05311.01
5.2.120.0070.05011.26
5.2.110.0000.04711.12
5.2.100.0030.05011.11
5.2.90.0030.05311.03
5.2.80.0000.05711.17
5.2.70.0000.06011.09
5.2.60.0030.04010.98
5.2.50.0030.04711.01
5.2.40.0000.05010.92
5.2.30.0070.05011.05
5.2.20.0000.05310.88
5.2.10.0030.05310.80
5.2.00.0030.05010.62
5.1.60.0000.04710.28
5.1.50.0030.03710.28
5.1.40.0070.04010.28
5.1.30.0030.04310.32
5.1.20.0000.04310.28
5.1.10.0030.04710.28
5.1.00.0000.04710.28
5.0.50.0000.04310.28
5.0.40.0030.03010.28
5.0.30.0000.05310.28
5.0.20.0000.03710.28
5.0.10.0000.03010.28
5.0.00.0000.05010.28
4.4.90.0030.02310.28
4.4.80.0030.02010.28
4.4.70.0030.02710.28
4.4.60.0000.03310.28
4.4.50.0000.03010.28
4.4.40.0030.03310.28
4.4.30.0030.02710.28
4.4.20.0000.03010.28
4.4.10.0000.02710.28
4.4.00.0030.04310.28
4.3.110.0000.03010.28
4.3.100.0000.03010.28
4.3.90.0000.02710.28
4.3.80.0070.04010.28
4.3.70.0030.02010.28
4.3.60.0000.02010.28
4.3.50.0000.02310.28
4.3.40.0000.03710.28
4.3.30.0000.03010.28
4.3.20.0030.03010.28
4.3.10.0000.02710.28
4.3.00.0030.03010.28

preferences:
50.24 ms | 400 KiB | 5 Q