3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public $class; } $header = [new Something]; if ($header[0] instanceof Something) { echo $header[0]->class; } else { echo 'not set'; }

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.01218.39
8.3.50.0090.01021.95
8.3.40.0130.00718.71
8.3.30.0110.00319.06
8.3.20.0040.00420.36
8.3.10.0060.00320.66
8.3.00.0040.00419.25
8.2.180.0110.00716.75
8.2.170.0040.01122.96
8.2.160.0030.01020.48
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00620.83
8.2.110.0000.00920.57
8.2.100.0070.00718.03
8.2.90.0050.00319.10
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0040.00417.92
8.2.50.0060.00618.07
8.2.40.0030.00619.94
8.2.30.0040.00418.10
8.2.20.0040.00417.83
8.2.10.0050.00318.04
8.2.00.0000.00817.73
8.1.280.0170.00025.92
8.1.270.0040.00423.80
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00623.84
8.1.230.0060.00319.00
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0050.00222.07
8.1.150.0040.00418.94
8.1.140.0000.00717.36
8.1.130.0030.00317.70
8.1.120.0000.00817.32
8.1.110.0000.00717.40
8.1.100.0000.00717.46
8.1.90.0040.00417.48
8.1.80.0000.00717.34
8.1.70.0000.00717.46
8.1.60.0030.00617.54
8.1.50.0030.00517.44
8.1.40.0040.00417.37
8.1.30.0000.00817.45
8.1.20.0000.00717.69
8.1.10.0000.00817.53
8.1.00.0110.00017.49
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0070.00018.45
8.0.270.0000.00717.23
8.0.260.0030.00317.24
8.0.250.0030.00316.85
8.0.240.0000.00816.93
8.0.230.0000.00716.91
8.0.220.0030.00316.78
8.0.210.0040.00416.90
8.0.200.0000.00616.96
8.0.190.0090.00317.01
8.0.180.0000.00716.92
8.0.170.0040.00416.92
8.0.160.0050.00316.93
8.0.150.0030.00316.73
8.0.140.0000.00716.91
8.0.130.0000.00513.35
8.0.120.0030.00616.82
8.0.110.0070.00016.71
8.0.100.0040.00416.75
8.0.90.0000.00716.86
8.0.80.0040.01216.92
8.0.70.0040.00416.95
8.0.60.0000.00816.88
8.0.50.0000.00816.90
8.0.30.0090.00917.05
8.0.20.0150.00317.40
8.0.10.0040.00416.85
8.0.00.0090.00816.77
7.4.330.0020.00215.10
7.4.320.0000.00616.53
7.4.300.0000.00716.60
7.4.290.0030.00316.56
7.4.280.0000.00716.60
7.4.270.0070.00016.59
7.4.260.0000.00716.49
7.4.250.0040.00416.57
7.4.240.0070.00016.48
7.4.230.0000.00816.55
7.4.220.0070.01816.50
7.4.210.0060.00816.49
7.4.200.0000.00716.51
7.4.160.0070.00716.66
7.4.150.0140.00617.40
7.4.140.0080.00917.86
7.4.130.0070.00916.62
7.4.120.0080.00816.48
7.4.110.0160.00016.55
7.4.100.0090.01316.42
7.4.90.0070.01016.68
7.4.80.0070.01019.39
7.4.70.0070.01416.47
7.4.60.0090.00816.51
7.4.50.0050.00016.33
7.4.40.0130.01016.39
7.4.30.0070.01016.55
7.4.00.0030.01014.62
7.3.330.0000.00713.30
7.3.320.0030.00313.31
7.3.310.0070.00016.32
7.3.300.0000.00716.16
7.3.290.0030.01016.20
7.3.280.0090.00916.25
7.3.270.0100.01017.40
7.3.260.0100.00716.33
7.3.250.0100.00716.36
7.3.240.0060.01216.22
7.3.230.0110.00616.39
7.3.210.0070.01516.41
7.3.200.0140.00419.39
7.3.190.0140.00316.50
7.3.180.0100.01116.51
7.3.170.0100.00716.52
7.3.160.0080.00816.43
7.2.330.0150.01016.55
7.2.320.0170.00016.73
7.2.310.0070.01416.55
7.2.300.0030.01316.71
7.2.290.0070.01116.66
7.1.70.0100.00017.13
7.1.60.0090.01219.32
7.1.50.0000.02116.59
7.1.00.0100.07022.43
7.0.200.0070.00416.63
7.0.140.0030.07722.08
7.0.60.0100.08319.97
7.0.50.0070.05717.88
7.0.40.0100.04720.27
7.0.30.0500.06020.29
7.0.20.0370.05720.21
7.0.10.0070.04720.33
7.0.00.0000.09020.18
5.6.280.0170.06020.78
5.6.210.0030.04020.64
5.6.200.0070.07318.15
5.6.190.0070.06720.64
5.6.180.0270.04720.50
5.6.170.0370.05020.44
5.6.160.0100.08020.57
5.6.150.0070.08018.23
5.6.140.0070.07318.18
5.6.130.0000.04318.16
5.6.120.0100.05020.87
5.6.110.0170.07321.08
5.6.100.0070.05021.13
5.6.90.0130.07320.97
5.6.80.0070.08320.38
5.5.350.0300.07020.38
5.5.340.0100.04717.97
5.5.330.0130.05720.47
5.5.320.0470.07320.32
5.5.310.0070.05020.24
5.5.300.0100.05717.94
5.5.290.0100.07318.02
5.5.280.0030.09020.90
5.5.270.0130.05020.77
5.5.260.0070.07020.86
5.5.250.0030.04720.63
5.5.240.0230.06720.35
5.4.450.1800.04019.55
5.4.440.1770.04019.47
5.4.430.1800.05319.28
5.4.420.1870.04319.52
5.4.410.1870.05019.33
5.4.400.1970.04319.15
5.4.390.1930.04719.15
5.4.380.1970.04019.09
5.4.370.1870.05018.95
5.4.360.1930.04019.15
5.4.350.1870.04318.96
5.4.340.1700.03719.17
5.4.320.1830.04018.84
5.4.310.1700.03718.98
5.4.300.1930.04319.16
5.4.290.2000.04319.14
5.4.280.1970.03719.13
5.4.270.2100.03719.24
5.4.260.2030.04019.07
5.4.250.1730.04019.14
5.4.240.1830.03719.18
5.4.230.1830.03019.16
5.4.220.1770.04019.05
5.4.210.2000.04319.21
5.4.200.1830.03019.05
5.4.190.2130.04319.05
5.4.180.1970.04319.23
5.4.170.1800.03719.04
5.4.160.1770.03718.93
5.4.150.1930.04019.06
5.4.140.2030.04016.52
5.4.130.2070.04316.49
5.4.120.1930.03016.33
5.4.110.1770.04016.45
5.4.100.2070.03716.25
5.4.90.1930.03016.25
5.4.80.1830.04016.43
5.4.70.1900.03316.39
5.4.60.2000.03016.54
5.4.50.1930.03016.58
5.4.40.1730.03316.53
5.4.30.1730.03316.21
5.4.20.1730.03316.53
5.4.10.1970.03716.30
5.4.00.1830.04015.94
5.3.290.1930.04014.61
5.3.280.1700.04314.81
5.3.270.1970.04014.57
5.3.260.1900.04014.68
5.3.250.2000.04314.57
5.3.240.1900.04014.61
5.3.230.1870.04314.61
5.3.220.1770.03714.64
5.3.210.2030.04314.55
5.3.200.1700.04014.48
5.3.190.1970.04014.62
5.3.180.1730.03714.46
5.3.170.2000.04314.57
5.3.160.2000.04014.57
5.3.150.1700.04014.55
5.3.140.1730.03314.64
5.3.130.1930.05014.77
5.3.120.1930.04714.65
5.3.110.1700.04314.55
5.3.100.1900.04313.95
5.3.90.2070.04014.16
5.3.80.0200.05014.09
5.3.70.0200.07313.99
5.3.60.0170.04313.90
5.3.50.0230.03013.84
5.3.40.0200.04013.85
5.3.30.0200.06713.82
5.3.20.0170.03713.69
5.3.10.0230.05313.66
5.3.00.0230.06313.61
5.2.170.0170.05011.21
5.2.160.0170.04711.14
5.2.150.0270.02711.29
5.2.140.0170.04711.06
5.2.130.0170.02311.07
5.2.120.0130.03711.32
5.2.110.0200.03311.24
5.2.100.0170.06011.13
5.2.90.0170.04011.17
5.2.80.0200.04011.00
5.2.70.0170.06011.14
5.2.60.0130.06311.13
5.2.50.0270.05010.97
5.2.40.0200.04010.99
5.2.30.0170.03010.97
5.2.20.0130.02710.86
5.2.10.0070.04711.08
5.2.00.0170.03310.93
5.1.60.0130.02310.22
5.1.50.0330.0239.97
5.1.40.0170.0239.87
5.1.30.0170.03710.55
5.1.20.0200.04010.42
5.1.10.0200.05010.04
5.1.00.0230.04710.14
5.0.50.0130.0338.45
5.0.40.0030.0238.54
5.0.30.0030.0378.45
5.0.20.0170.0308.18
5.0.10.0100.0338.18
5.0.00.0070.0608.38
4.4.90.0130.0108.18
4.4.80.0000.0208.18
4.4.70.0270.0138.18
4.4.60.0070.0178.18
4.4.50.0070.0278.18
4.4.40.0100.0508.18
4.4.30.0070.0138.18
4.4.20.0030.0208.18
4.4.10.0030.0178.18
4.4.00.0070.0238.18
4.3.110.0030.0208.18
4.3.100.0100.0278.18
4.3.90.0100.0108.18
4.3.80.0130.0538.18
4.3.70.0070.0278.18
4.3.60.0070.0138.18
4.3.50.0100.0138.18
4.3.40.0030.0308.18
4.3.30.0070.0138.18
4.3.20.0030.0178.18
4.3.10.0030.0138.18
4.3.00.0030.0238.18

preferences:
43.75 ms | 401 KiB | 5 Q