3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected function __construct() {} public static function create($name) { class_alias('Foo', $name); return new $name(); } } $bar = Foo::create('Bar'); var_dump($bar instanceof Bar);

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.01216.63
8.3.50.0150.00222.00
8.3.40.0000.01518.67
8.3.30.0120.00319.09
8.3.20.0080.00020.16
8.3.10.0040.00420.44
8.3.00.0050.00319.26
8.2.180.0120.00616.50
8.2.170.0110.00422.96
8.2.160.0090.00920.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00020.91
8.2.110.0000.01022.10
8.2.100.0040.00817.59
8.2.90.0050.00319.09
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0080.00517.90
8.2.50.0040.00418.07
8.2.40.0030.00618.03
8.2.30.0040.00419.36
8.2.20.0000.00717.50
8.2.10.0030.00518.04
8.2.00.0000.00717.63
8.1.280.0100.01025.92
8.1.270.0060.00623.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.87
8.1.230.0040.00819.15
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0000.00917.22
8.1.180.0000.00818.10
8.1.170.0080.00018.48
8.1.160.0000.00721.94
8.1.150.0040.00418.74
8.1.140.0040.00417.39
8.1.130.0000.00717.77
8.1.120.0040.00317.36
8.1.110.0070.00017.44
8.1.100.0030.00517.41
8.1.90.0000.00817.40
8.1.80.0080.00017.32
8.1.70.0030.00317.40
8.1.60.0080.00017.48
8.1.50.0000.00817.50
8.1.40.0000.00817.55
8.1.30.0040.00417.60
8.1.20.0040.00417.55
8.1.10.0040.00417.60
8.1.00.0110.00017.52
8.0.300.0040.00418.77
8.0.290.0000.00816.59
8.0.280.0000.00718.41
8.0.270.0040.00417.10
8.0.260.0060.00017.19
8.0.250.0070.00016.93
8.0.240.0030.00316.89
8.0.230.0030.00316.80
8.0.220.0070.00016.72
8.0.210.0000.00716.81
8.0.200.0070.00016.85
8.0.190.0000.00716.89
8.0.180.0000.00816.68
8.0.170.0050.00316.79
8.0.160.0000.00716.88
8.0.150.0030.00316.78
8.0.140.0080.00016.78
8.0.130.0050.00013.32
8.0.120.0030.00616.66
8.0.110.0070.00016.75
8.0.100.0040.00416.68
8.0.90.0000.00716.79
8.0.80.0000.01516.87
8.0.70.0070.00016.70
8.0.60.0040.00416.81
8.0.50.0040.00416.71
8.0.30.0050.01617.04
8.0.20.0060.01317.40
8.0.10.0000.00816.80
8.0.00.0070.01016.88
7.4.330.0050.00015.07
7.4.320.0060.00316.30
7.4.300.0030.00316.44
7.4.290.0030.00316.46
7.4.280.0000.00816.63
7.4.270.0020.00516.61
7.4.260.0000.00716.63
7.4.250.0070.00016.59
7.4.240.0020.00516.56
7.4.230.0000.00716.71
7.4.220.0000.01916.70
7.4.210.0030.01016.55
7.4.200.0030.00316.40
7.4.160.0120.00616.57
7.4.150.0030.01917.40
7.4.140.0080.01017.86
7.4.130.0120.00416.53
7.4.120.0130.00516.61
7.4.110.0100.00716.49
7.4.100.0100.00716.50
7.4.90.0070.01116.63
7.4.80.0110.00519.39
7.4.70.0130.00616.62
7.4.60.0030.01316.65
7.4.50.0040.00416.37
7.4.40.0130.01016.47
7.4.30.0110.00516.72
7.4.00.0080.00315.05
7.3.330.0030.00313.30
7.3.320.0030.00313.27
7.3.310.0000.00716.34
7.3.300.0000.00716.26
7.3.290.0000.01316.25
7.3.280.0060.01116.28
7.3.270.0210.00017.40
7.3.260.0090.00916.58
7.3.250.0150.00316.41
7.3.240.0090.01216.17
7.3.230.0030.01216.51
7.3.210.0100.00816.40
7.3.200.0090.00919.39
7.3.190.0110.01116.28
7.3.180.0100.01116.61
7.3.170.0080.00816.47
7.3.160.0060.00916.30
7.3.120.0070.01014.77
7.3.110.0060.01214.76
7.3.100.0020.01514.86
7.3.90.0060.00614.63
7.3.80.0080.00514.78
7.3.70.0000.00914.61
7.3.60.0000.01214.66
7.3.50.0030.01014.80
7.3.40.0060.00614.61
7.3.30.0100.00314.65
7.3.20.0040.00816.64
7.3.10.0090.00616.86
7.3.00.0000.01416.63
7.2.330.0000.01616.41
7.2.320.0070.01016.32
7.2.310.0030.02116.72
7.2.300.0150.00416.69
7.2.290.0040.01416.50
7.2.240.0040.01215.04
7.2.230.0070.01014.71
7.2.220.0160.00015.02
7.2.210.0070.00715.12
7.2.200.0070.00714.89
7.2.190.0060.00614.90
7.2.180.0040.01114.93
7.2.170.0000.01414.96
7.2.160.0060.00614.94
7.2.150.0100.00316.73
7.2.140.0070.00716.80
7.2.130.0030.00916.93
7.2.120.0030.01316.79
7.2.110.0120.00616.88
7.2.100.0000.01116.79
7.2.90.0060.01216.96
7.2.80.0130.00616.88
7.2.70.0130.00616.63
7.2.60.0060.00816.97
7.2.50.0100.00316.97
7.2.40.0100.00316.80
7.2.30.0060.00616.98
7.2.20.0000.01016.83
7.2.10.0090.00616.84
7.2.00.0070.00518.16
7.1.330.0060.00615.87
7.1.320.0040.01116.08
7.1.310.0070.01015.97
7.1.300.0030.00715.70
7.1.290.0030.00615.90
7.1.280.0030.00715.71
7.1.270.0030.00915.56
7.1.260.0000.01415.72
7.1.250.0060.01215.64
7.1.200.0070.00415.79
7.1.100.0030.00618.10
7.1.70.0060.00617.16
7.1.60.0110.01419.61
7.1.50.0150.00717.04
7.1.00.0000.08022.28
7.0.200.0030.00616.80
7.0.140.0100.06722.05
7.0.60.0130.07319.91
7.0.50.0030.04017.88
7.0.40.0100.08720.23
7.0.30.0330.04020.15
7.0.20.0370.05720.33
7.0.10.0070.06720.22
7.0.00.0070.04020.18
5.6.280.0100.06720.87
5.6.210.0070.03720.55
5.6.200.0100.08018.25
5.6.190.0030.06320.41
5.6.180.0270.08020.47
5.6.170.0170.04320.51
5.6.160.0100.03320.54
5.6.150.0000.07018.25
5.6.140.0000.08718.18
5.6.130.0100.08018.15
5.6.120.0070.08021.08
5.6.110.0130.06320.98
5.6.100.0070.04021.00
5.6.90.0130.05721.03
5.6.80.0070.03720.41
5.6.70.0200.06720.53
5.5.350.0070.08720.42
5.5.340.0030.07017.98
5.5.330.0030.06720.40
5.5.320.0330.06720.31
5.5.310.0270.07720.35
5.5.300.0030.04717.92
5.5.290.0070.08017.91
5.5.280.0070.08720.96
5.5.270.0030.04720.87
5.5.260.0130.07320.72
5.5.250.0030.05020.68
5.5.240.0070.07320.04
5.4.450.0130.05719.63
5.4.440.0600.05719.48
5.4.430.0270.04719.61
5.4.420.0130.05319.34
5.4.410.0100.06019.27
5.4.400.0130.05319.23
5.4.390.0170.06019.25
5.4.380.0170.06318.50
5.4.370.0170.06018.52
5.4.360.0300.05018.56
5.4.350.0400.04018.63
5.4.340.0400.04318.79
5.4.320.0090.03312.50
5.4.310.0050.03912.49
5.4.300.0010.04012.50
5.4.290.0070.03612.49
5.4.280.0060.03612.39
5.4.270.0150.02612.39
5.4.260.0070.03712.39
5.4.250.0050.03812.40
5.4.240.0070.03512.40
5.4.230.0030.04012.38
5.4.220.0040.03712.38
5.4.210.0060.03512.39
5.4.200.0100.03212.39
5.4.190.0050.03712.38
5.4.180.0070.03512.39
5.4.170.0050.03612.39
5.4.160.0050.03712.39
5.4.150.0130.03012.39
5.4.140.0060.03712.07
5.4.130.0060.03612.06
5.4.120.0050.03612.02
5.4.110.0070.03412.02
5.4.100.0040.03612.01
5.4.90.0120.03112.02
5.4.80.0090.03312.01
5.4.70.0040.03612.01
5.4.60.0020.03912.01
5.4.50.0040.03712.01
5.4.40.0060.03312.00
5.4.30.0040.03711.99
5.4.20.0060.03511.99
5.4.10.0090.03112.00
5.4.00.0070.03411.48
5.3.290.0100.03412.80
5.3.280.0070.03612.71
5.3.270.0090.03712.72
5.3.260.0080.03912.71
5.3.250.0090.03412.72
5.3.240.0090.03812.72
5.3.230.0050.03812.71
5.3.220.0040.04012.68
5.3.210.0060.04012.68
5.3.200.0070.03712.68
5.3.190.0060.03812.67
5.3.180.0060.03712.67
5.3.170.0110.03212.66
5.3.160.0120.03212.67
5.3.150.0150.02912.67
5.3.140.0070.03912.66
5.3.130.0060.04012.66
5.3.120.0060.04012.66
5.3.110.0040.04012.66
5.3.100.0060.03812.12
5.3.90.0050.03712.10
5.3.80.0070.03512.09
5.3.70.0070.03512.10
5.3.60.0050.03712.08
5.3.50.0050.03712.03
5.3.40.0100.03212.03
5.3.30.0080.03211.98
5.3.20.0090.03311.76
5.3.10.0080.03611.73
5.3.00.0060.03611.73
5.2.170.0050.0309.23
5.2.160.0060.0279.22
5.2.150.0040.0319.23
5.2.140.0060.0299.22
5.2.130.0030.0329.18
5.2.120.0070.0269.18
5.2.110.0090.0259.20
5.2.100.0030.0309.19
5.2.90.0080.0279.19
5.2.80.0040.0319.18
5.2.70.0050.0309.18
5.2.60.0060.0299.13
5.2.50.0050.0309.11
5.2.40.0030.0299.08
5.2.30.0030.0329.05
5.2.20.0060.0279.04
5.2.10.0050.0298.95
5.2.00.0060.0298.81
5.1.60.0040.0248.09
5.1.50.0050.0248.09
5.1.40.0050.0238.07
5.1.30.0040.0268.42
5.1.20.0040.0278.44
5.1.10.0040.0268.17
5.1.00.0070.0228.17
5.0.50.0050.0196.65
5.0.40.0030.0206.50
5.0.30.0020.0326.32
5.0.20.0060.0176.28
5.0.10.0040.0196.26
5.0.00.0040.0316.25
4.4.90.0040.0144.77
4.4.80.0030.0144.75
4.4.70.0020.0164.76
4.4.60.0050.0134.76
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0010.0174.76
4.4.20.0030.0154.84
4.4.10.0030.0164.84
4.4.00.0050.0264.76
4.3.110.0020.0154.67
4.3.100.0010.0164.66
4.3.90.0040.0134.63
4.3.80.0010.0264.58
4.3.70.0010.0164.63
4.3.60.0040.0134.63
4.3.50.0050.0134.63
4.3.40.0020.0244.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0010.0183.23
4.3.00.0000.0237.38

preferences:
35.17 ms | 401 KiB | 5 Q