3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public $class = 'set'; } $header = array(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.0060.00918.55
8.3.50.0130.00722.05
8.3.40.0140.00318.83
8.3.30.0030.01019.07
8.3.20.0060.00920.04
8.3.10.0080.00020.66
8.3.00.0050.00319.26
8.2.180.0160.00316.38
8.2.170.0100.00722.96
8.2.160.0100.01020.57
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00422.23
8.2.110.0040.00420.37
8.2.100.0120.00017.85
8.2.90.0080.00019.11
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0070.00017.80
8.2.50.0060.00618.07
8.2.40.0050.00319.89
8.2.30.0000.00918.11
8.2.20.0000.00717.66
8.2.10.0040.00418.05
8.2.00.0040.00417.62
8.1.280.0130.00325.92
8.1.270.0040.00423.83
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.14
8.1.230.0040.00720.85
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0030.00518.66
8.1.160.0040.00422.07
8.1.150.0050.00218.93
8.1.140.0000.00717.45
8.1.130.0030.00517.80
8.1.120.0000.00717.36
8.1.110.0000.00817.52
8.1.100.0000.00717.50
8.1.90.0000.00717.37
8.1.80.0070.00017.51
8.1.70.0000.00717.40
8.1.60.0000.00817.57
8.1.50.0000.00817.49
8.1.40.0080.00017.55
8.1.30.0050.00317.60
8.1.20.0000.00817.54
8.1.10.0040.00417.59
8.1.00.0080.00017.39
8.0.300.0040.00420.13
8.0.290.0040.00416.63
8.0.280.0030.00318.31
8.0.270.0050.00217.29
8.0.260.0060.00017.16
8.0.250.0040.00316.91
8.0.240.0000.00716.98
8.0.230.0000.00716.97
8.0.220.0050.00316.85
8.0.210.0000.00716.84
8.0.200.0030.00316.99
8.0.190.0070.00416.98
8.0.180.0030.00316.88
8.0.170.0040.00416.74
8.0.160.0000.00716.82
8.0.150.0040.00416.84
8.0.140.0070.00016.72
8.0.130.0000.00513.24
8.0.120.0000.00916.75
8.0.110.0040.00416.79
8.0.100.0040.00416.82
8.0.90.0000.00716.91
8.0.80.0060.00916.95
8.0.70.0050.00217.00
8.0.60.0050.00216.96
8.0.50.0040.00416.77
8.0.30.0120.00617.05
8.0.20.0110.00817.40
8.0.10.0050.00316.98
8.0.00.0120.00616.76
7.4.330.0020.00215.14
7.4.320.0000.00616.59
7.4.300.0000.00616.50
7.4.290.0070.00016.42
7.4.280.0000.00716.50
7.4.270.0030.00316.64
7.4.260.0060.00316.60
7.4.250.0080.00016.56
7.4.240.0070.00016.53
7.4.230.0070.00016.30
7.4.220.0070.01716.64
7.4.210.0090.00616.48
7.4.200.0000.00716.34
7.4.160.0040.01116.42
7.4.150.0070.01017.40
7.4.140.0080.00917.86
7.4.130.0100.00716.49
7.4.120.0070.01016.36
7.4.110.0080.00816.42
7.4.100.0100.00716.45
7.4.90.0150.00316.53
7.4.80.0070.01119.39
7.4.70.0130.00316.29
7.4.60.0170.00716.48
7.4.50.0070.00016.29
7.4.40.0030.01316.22
7.4.30.0060.01016.57
7.4.00.0080.00814.84
7.3.330.0000.00513.22
7.3.320.0050.00013.09
7.3.310.0000.00716.40
7.3.300.0030.00316.30
7.3.290.0040.00916.23
7.3.280.0080.00916.25
7.3.270.0040.01517.40
7.3.260.0110.00716.40
7.3.250.0070.01016.40
7.3.240.0070.01116.55
7.3.230.0110.00816.39
7.3.210.0070.01516.50
7.3.200.0140.00319.39
7.3.190.0150.00316.49
7.3.180.0120.00416.37
7.3.170.0100.00716.27
7.3.160.0080.01216.41
7.2.330.0160.01016.69
7.2.320.0100.01016.72
7.2.310.0110.00616.46
7.2.300.0100.00716.73
7.2.290.0030.01516.72
7.2.00.0160.00719.30
7.1.100.0060.00618.26
7.1.70.0000.00716.78
7.1.60.0000.01419.32
7.1.50.0030.01016.81
7.1.00.0030.07722.52
7.0.200.0000.00816.63
7.0.140.0070.07022.21
7.0.60.0100.08319.93
7.0.50.0070.04017.83
7.0.40.0000.06320.18
7.0.30.0200.05720.18
7.0.20.0200.05320.23
7.0.10.0030.04320.10
7.0.00.0070.05320.07
5.6.280.0000.07720.82
5.6.210.0070.04020.68
5.6.200.0070.05318.18
5.6.190.0070.04320.42
5.6.180.0530.06320.48
5.6.170.0330.07020.54
5.6.160.0100.08020.50
5.6.150.0030.05718.29
5.6.140.0070.04018.18
5.6.130.0300.06718.14
5.6.120.0100.08020.79
5.6.110.0100.08021.13
5.6.100.0100.07721.00
5.6.90.0030.07320.98
5.6.80.0100.07720.52
5.5.350.0170.04020.32
5.5.340.0130.07717.98
5.5.330.0070.07720.45
5.5.320.0400.07720.34
5.5.310.0230.04720.26
5.5.300.0070.05317.98
5.5.290.0030.08318.05
5.5.280.0070.06020.79
5.5.270.0130.07320.85
5.5.260.0100.06320.76
5.5.250.0130.07320.75
5.5.240.0270.06320.16
5.4.450.0500.05019.55
5.4.440.0600.03719.39
5.4.430.0300.03019.55
5.4.420.0670.00019.54
5.4.410.0630.00019.45
5.4.400.0600.00019.09
5.4.390.0600.00019.06
5.4.380.0630.00019.09
5.4.370.0630.00019.12
5.4.360.0630.00019.11
5.4.350.0830.00019.24
5.4.340.0600.00019.04
5.4.320.0130.04312.50
5.4.310.0130.03712.49
5.4.300.0080.03512.49
5.4.290.0090.05612.49
5.4.280.0150.02812.39
5.4.270.0070.04012.39
5.4.260.0140.04612.39
5.4.250.0090.04712.39
5.4.240.0050.03912.39
5.4.230.0070.04212.38
5.4.220.0120.03412.38
5.4.210.0080.04212.38
5.4.200.0050.04412.38
5.4.190.0070.04212.38
5.4.180.0050.04112.38
5.4.170.0080.03612.39
5.4.160.0130.03412.39
5.4.150.0160.06212.39
5.4.140.0070.04112.07
5.4.130.0140.03812.05
5.4.120.0100.03412.02
5.4.110.0080.03712.01
5.4.100.0060.03712.01
5.4.90.0070.03912.01
5.4.80.0080.03912.01
5.4.70.0060.04512.00
5.4.60.0030.03912.00
5.4.50.0050.03712.00
5.4.40.0080.03311.99
5.4.30.0060.03411.98
5.4.20.0040.03711.98
5.4.10.0070.03511.99
5.4.00.0040.04511.48
5.3.290.0070.04412.80
5.3.280.0060.03912.71
5.3.270.0110.03412.72
5.3.260.0090.04112.72
5.3.250.0090.03812.72
5.3.240.0090.03812.72
5.3.230.0050.04012.71
5.3.220.0080.03912.68
5.3.210.0060.04812.68
5.3.200.0110.03912.68
5.3.190.0060.03912.67
5.3.180.0060.03812.67
5.3.170.0080.03912.67
5.3.160.0070.03612.67
5.3.150.0040.03912.67
5.3.140.0100.03812.66
5.3.130.0130.04912.66
5.3.120.0060.05212.66
5.3.110.0050.04012.66
5.3.100.0040.03912.12
5.3.90.0080.04112.09
5.3.80.0050.03912.08
5.3.70.0070.04012.09
5.3.60.0050.03912.07
5.3.50.0060.03612.02
5.3.40.0050.03812.02
5.3.30.0060.03511.98
5.3.20.0070.03411.76
5.3.10.0040.04011.72
5.3.00.0030.03911.71
5.2.170.0080.0329.21
5.2.160.0080.0339.21
5.2.150.0060.0359.21
5.2.140.0030.0329.21
5.2.130.0040.0309.17
5.2.120.0090.0289.17
5.2.110.0030.0339.18
5.2.100.0050.0309.17
5.2.90.0060.0289.17
5.2.80.0070.0279.16
5.2.70.0040.0319.16
5.2.60.0090.0279.12
5.2.50.0040.0359.09
5.2.40.0070.0279.06
5.2.30.0080.0279.04
5.2.20.0070.0279.02
5.2.10.0040.0298.93
5.2.00.0040.0398.79
5.1.60.0050.0298.08
5.1.50.0050.0298.08
5.1.40.0050.0358.06
5.1.30.0050.0258.40
5.1.20.0050.0308.43
5.1.10.0040.0278.16
5.1.00.0090.0248.16
5.0.50.0030.0206.63
5.0.40.0030.0216.49
5.0.30.0030.0316.30
5.0.20.0040.0236.27
5.0.10.0040.0196.25
5.0.00.0080.0306.24
4.4.90.0030.0194.77
4.4.80.0020.0204.75
4.4.70.0030.0174.76
4.4.60.0050.0144.75
4.4.50.0030.0164.77
4.4.40.0030.0254.71
4.4.30.0010.0184.76
4.4.20.0030.0194.85
4.4.10.0020.0184.85
4.4.00.0030.0284.76
4.3.110.0050.0184.67
4.3.100.0040.0174.67
4.3.90.0040.0154.63
4.3.80.0030.0254.59
4.3.70.0020.0164.63
4.3.60.0050.0124.63
4.3.50.0010.0174.63
4.3.40.0030.0244.54
4.3.30.0010.0213.30
4.3.20.0000.0183.28
4.3.10.0020.0153.23
4.3.00.0300.01313.59

preferences:
42.23 ms | 401 KiB | 5 Q