3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function isFoo() { //return $this instanceof Foo; return "aa"; } } class Bar { public function doSomething() { return Foo::isFoo(); } } $bar = new Bar; var_dump($bar->doSomething());

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.0150.00618.31
8.3.50.0220.00722.06
8.3.40.0170.00318.85
8.3.30.0100.00319.27
8.3.20.0000.00820.16
8.3.10.0040.00421.92
8.3.00.0040.00422.38
8.2.180.0030.01316.63
8.2.170.0140.00422.96
8.2.160.0090.00620.83
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00417.75
8.2.110.0060.00320.52
8.2.100.0040.00819.58
8.2.90.0030.00619.05
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00418.00
8.2.20.0000.00717.64
8.2.10.0080.00019.53
8.2.00.0030.00717.56
8.1.280.0100.01025.92
8.1.270.0080.00021.94
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00320.83
8.1.230.0060.00617.45
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0030.00617.51
8.1.180.0040.00418.10
8.1.170.0030.00618.43
8.1.160.0040.00421.87
8.1.150.0000.00718.55
8.1.140.0030.00717.42
8.1.130.0080.00017.88
8.1.120.0050.00217.45
8.1.110.0040.00417.45
8.1.100.0050.00217.32
8.1.90.0070.00017.25
8.1.80.0000.00717.37
8.1.70.0030.00317.37
8.1.60.0050.00317.47
8.1.50.0050.00217.55
8.1.40.0020.00517.54
8.1.30.0040.00417.47
8.1.20.0060.00317.71
8.1.10.0000.00717.47
8.1.00.0040.00417.58
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0030.00318.39
8.0.270.0000.00717.19
8.0.260.0030.00316.70
8.0.250.0000.00716.88
8.0.240.0000.00716.85
8.0.230.0000.00716.95
8.0.220.0070.00016.91
8.0.210.0000.00716.85
8.0.200.0000.00616.96
8.0.190.0000.00816.91
8.0.180.0070.00316.91
8.0.170.0000.00816.95
8.0.160.0000.00716.97
8.0.150.0030.00516.89
8.0.140.0000.00816.87
8.0.130.0030.00313.30
8.0.120.0000.00716.77
8.0.110.0000.00716.72
8.0.100.0040.00416.82
8.0.90.0000.00716.77
8.0.80.0030.01716.89
8.0.70.0030.00516.85
8.0.60.0000.00817.00
8.0.50.0040.00416.93
8.0.30.0120.01017.12
8.0.20.0140.00517.40
8.0.10.0000.00717.04
8.0.00.0100.00716.63
7.4.330.0000.00515.00
7.4.320.0060.00016.59
7.4.300.0000.00616.59
7.4.290.0040.00416.63
7.4.280.0030.00316.59
7.4.270.0000.00716.61
7.4.260.0070.00016.48
7.4.250.0000.00716.34
7.4.240.0030.00416.51
7.4.230.0030.00316.57
7.4.220.0090.01716.40
7.4.210.0080.00716.49
7.4.200.0030.00316.48
7.4.190.0040.00216.67
7.4.160.0100.00716.48
7.4.150.0030.01317.40
7.4.140.0070.01017.86
7.4.130.0130.00616.51
7.4.120.0080.00816.35
7.4.110.0140.00316.64
7.4.100.0070.01016.57
7.4.90.0100.01016.52
7.4.80.0040.01819.39
7.4.70.0070.01316.41
7.4.60.0100.00716.45
7.4.50.0000.00816.44
7.4.40.0040.01522.77
7.4.30.0000.01916.57
7.4.00.0050.00315.06
7.3.330.0000.00513.16
7.3.320.0000.00513.30
7.3.310.0030.00516.33
7.3.300.0000.00716.26
7.3.290.0040.01116.34
7.3.280.0090.01016.26
7.3.270.0090.00617.40
7.3.260.0100.00716.12
7.3.250.0090.00816.38
7.3.240.0070.01016.30
7.3.230.0150.00816.39
7.3.210.0140.00316.48
7.3.200.0090.01219.39
7.3.190.0100.00516.33
7.3.180.0120.00316.38
7.3.170.0060.01116.27
7.3.160.0060.01016.32
7.3.120.0100.00314.68
7.3.10.0070.00316.77
7.3.00.0060.00316.34
7.2.330.0070.01316.60
7.2.320.0080.01316.59
7.2.310.0060.01216.53
7.2.300.0160.00016.56
7.2.290.0090.00816.68
7.2.130.0030.01016.82
7.2.120.0030.01216.56
7.2.110.0060.00916.65
7.2.100.0110.00316.77
7.2.90.0040.00816.99
7.2.80.0040.00816.86
7.2.70.0110.00416.53
7.2.60.0030.00616.56
7.2.50.0000.01116.81
7.2.40.0070.01116.76
7.2.30.0110.00316.79
7.2.20.0060.00316.65
7.2.10.0060.00616.54
7.2.00.0000.01118.13
7.1.250.0000.01115.63
7.1.200.0060.00915.70
7.1.100.0070.00418.07
7.1.70.0000.00817.09
7.1.60.0060.01819.82
7.1.50.0030.01316.95
7.1.00.0030.07722.27
7.0.200.0000.00816.66
7.0.140.0030.07321.98
7.0.60.0030.04720.07
7.0.50.0100.05317.88
7.0.40.0130.07320.05
7.0.30.0270.05320.08
7.0.20.0130.04320.33
7.0.10.0230.06320.23
7.0.00.0000.07020.06
5.6.280.0030.07021.00
5.6.210.0100.08720.76
5.6.200.0100.07018.31
5.6.190.0000.06320.34
5.6.180.4070.04320.42
5.6.170.0230.06720.51
5.6.160.0100.07720.46
5.6.150.0100.08018.29
5.6.140.0000.05318.15
5.6.130.0000.04718.28
5.6.120.0130.06320.96
5.6.110.0100.08020.89
5.6.100.0100.08021.09
5.6.90.0070.05721.13
5.6.80.0100.06020.37
5.6.70.3700.03720.36
5.5.350.0330.07320.33
5.5.340.0000.04718.02
5.5.330.0070.08320.38
5.5.320.0300.03020.36
5.5.310.0130.04020.35
5.5.300.0100.04318.02
5.5.290.0030.08717.97
5.5.280.0030.07320.93
5.5.270.0030.05720.73
5.5.260.0000.04320.89
5.5.250.0030.04320.69
5.5.240.0030.03720.29
5.4.450.0430.05019.54
5.4.440.0330.07719.33
5.4.430.1330.00019.28
5.4.420.1700.00019.44
5.4.410.0170.07318.94
5.4.400.0170.04718.46
5.4.390.0200.04318.72
5.4.380.0200.06018.72
5.4.370.0170.05018.69
5.4.360.0170.05018.72
5.4.350.0130.06318.72
5.4.340.0130.06018.79
5.4.320.0060.03812.50
5.4.310.0030.04112.50
5.4.300.0040.03812.50
5.4.290.0040.04212.50
5.4.280.0080.03812.37
5.4.270.0110.03412.36
5.4.260.0090.04212.36
5.4.250.0050.04812.37
5.4.240.0050.03712.37
5.4.230.0100.03412.36
5.4.220.0060.03612.36
5.4.210.0050.04412.36
5.4.200.0090.03812.36
5.4.190.0070.04012.36
5.4.180.0080.03512.36
5.4.170.0070.03912.37
5.4.160.0070.03712.36
5.4.150.0040.04012.36
5.4.140.0060.03912.04
5.4.130.0050.03712.03
5.4.120.0080.03511.99
5.4.110.0090.03311.99
5.4.100.0060.04111.98
5.4.90.0080.04111.98
5.4.80.0090.04411.98
5.4.70.0040.03911.98
5.4.60.0060.03511.98
5.4.50.0050.03711.98
5.4.40.0050.03611.97
5.4.30.0050.03711.96
5.4.20.0110.03011.96
5.4.10.0070.03611.96
5.4.00.0030.04511.45
5.3.290.0050.04412.80
5.3.280.0080.04012.71
5.3.270.0070.03812.73
5.3.260.0090.04112.72
5.3.250.0040.03912.72
5.3.240.0040.04312.72
5.3.230.0060.03812.71
5.3.220.0080.04812.68
5.3.210.0060.04012.68
5.3.200.0070.04012.68
5.3.190.0080.04712.68
5.3.180.0090.04512.67
5.3.170.0090.03512.67
5.3.160.0040.03912.68
5.3.150.0100.03412.68
5.3.140.0080.03812.66
5.3.130.0070.03812.66
5.3.120.0080.04112.66
5.3.110.0090.03812.66
5.3.100.0060.03712.12
5.3.90.0080.03612.09
5.3.80.0060.03812.07
5.3.70.0090.03612.07
5.3.60.0060.03812.07
5.3.50.0060.03912.00
5.3.40.0060.03812.00
5.3.30.0070.03511.96
5.3.20.0080.03411.74
5.3.10.0060.03811.71
5.3.00.0090.03411.70
5.2.170.0040.0389.19
5.2.160.0030.0349.20
5.2.150.0050.0339.20
5.2.140.0060.0339.19
5.2.130.0030.0319.15
5.2.120.0070.0289.15
5.2.110.0100.0369.16
5.2.100.0070.0309.15
5.2.90.0070.0329.14
5.2.80.0080.0339.15
5.2.70.0020.0349.14
5.2.60.0050.0319.10
5.2.50.0050.0329.07
5.2.40.0070.0349.04
5.2.30.0040.0419.02
5.2.20.0100.0339.01
5.2.10.0090.0298.92
5.2.00.0050.0378.78
5.1.60.0020.0278.07
5.1.50.0060.0248.07
5.1.40.0030.0318.05
5.1.30.0070.0428.39
5.1.20.0040.0328.41
5.1.10.0050.0268.15
5.1.00.0040.0268.15
5.0.50.0030.0226.61
5.0.40.0030.0206.48
5.0.30.0050.0406.30
5.0.20.0070.0236.26
5.0.10.0070.0266.24
5.0.00.0040.0316.23
4.4.90.0030.0174.78
4.4.80.0020.0204.75
4.4.70.0040.0144.75
4.4.60.0040.0154.76
4.4.50.0030.0164.77
4.4.40.0020.0264.70
4.4.30.0030.0164.76
4.4.20.0040.0154.85
4.4.10.0050.0134.85
4.4.00.0030.0254.76
4.3.110.0060.0144.67
4.3.100.0030.0154.66
4.3.90.0010.0174.64
4.3.80.0030.0244.58
4.3.70.0040.0144.63
4.3.60.0030.0154.63
4.3.50.0010.0174.63
4.3.40.0020.0244.54
4.3.30.0020.0203.29
4.3.20.0010.0173.26
4.3.10.0040.0143.23
4.3.00.0100.02315.60

preferences:
38.92 ms | 400 KiB | 5 Q