3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function make() { return new self(); } } class ChildOfFoo extends Foo { public function __construct($a) { $this->a = $a;} } $b = ChildOfFoo::make(); var_dump($b);

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.0100.01018.31
8.3.50.0100.01621.11
8.3.40.0040.01518.65
8.3.30.0000.01419.09
8.3.20.0050.00320.29
8.3.10.0040.00423.45
8.3.00.0080.00018.99
8.2.180.0070.00716.61
8.2.170.0120.00322.96
8.2.160.0060.00920.39
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00522.01
8.2.110.0060.00320.99
8.2.100.0060.00617.38
8.2.90.0050.00318.99
8.2.80.0050.00317.97
8.2.70.0050.00317.25
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0080.00019.56
8.2.30.0030.00718.03
8.2.20.0050.00317.62
8.2.10.0060.00317.85
8.2.00.0040.00417.59
8.1.280.0100.00725.92
8.1.270.0050.00523.71
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00722.04
8.1.230.0080.00319.15
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0070.00317.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0070.00021.95
8.1.150.0000.00718.82
8.1.140.0000.00717.30
8.1.130.0000.00717.77
8.1.120.0040.00417.39
8.1.110.0050.00317.30
8.1.100.0000.00717.29
8.1.90.0000.00717.41
8.1.80.0070.00017.28
8.1.70.0000.00817.41
8.1.60.0030.00617.47
8.1.50.0040.00417.42
8.1.40.0040.00417.42
8.1.30.0000.00817.67
8.1.20.0020.00517.66
8.1.10.0040.00417.53
8.1.00.0050.00317.46
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0050.00218.44
8.0.270.0030.00617.09
8.0.260.0030.00317.18
8.0.250.0000.00716.91
8.0.240.0070.00016.78
8.0.230.0070.00316.87
8.0.220.0040.00316.85
8.0.210.0060.00316.80
8.0.200.0060.00016.90
8.0.190.0040.00416.91
8.0.180.0080.00016.75
8.0.170.0040.00416.78
8.0.160.0040.00416.79
8.0.150.0030.00716.75
8.0.140.0040.00416.76
8.0.130.0000.00613.27
8.0.120.0070.00016.69
8.0.110.0080.00016.85
8.0.100.0050.00216.82
8.0.90.0070.00016.82
8.0.80.0030.01916.71
8.0.70.0000.00816.81
8.0.60.0000.00716.70
8.0.50.0070.00016.87
8.0.30.0120.00716.87
8.0.20.0160.00317.40
8.0.10.0080.00016.93
8.0.00.0090.00816.71
7.4.330.0000.00615.02
7.4.320.0060.00016.58
7.4.300.0000.00616.57
7.4.290.0000.00716.46
7.4.280.0000.00716.50
7.4.270.0030.00316.61
7.4.260.0030.00316.60
7.4.250.0000.00716.55
7.4.240.0020.00516.60
7.4.230.0030.00316.61
7.4.220.0160.01016.60
7.4.210.0110.00416.58
7.4.200.0040.00416.59
7.4.160.0060.00916.52
7.4.150.0070.01117.40
7.4.140.0100.01117.86
7.4.130.0050.01116.50
7.4.120.0110.00916.37
7.4.110.0090.00816.44
7.4.100.0070.01116.41
7.4.90.0090.00916.46
7.4.80.0130.00919.39
7.4.70.0070.01416.44
7.4.60.0030.01616.32
7.4.50.0030.00616.36
7.4.40.0160.00016.62
7.4.30.0170.00516.48
7.4.00.0000.01614.94
7.3.330.0070.00013.06
7.3.320.0000.00513.19
7.3.310.0030.00316.23
7.3.300.0000.00716.11
7.3.290.0050.01016.21
7.3.280.0070.01016.24
7.3.270.0110.00717.40
7.3.260.0130.00316.58
7.3.250.0070.00916.36
7.3.240.0100.00616.24
7.3.230.0130.00616.39
7.3.210.0060.01016.45
7.3.200.0170.00319.39
7.3.190.0080.00816.30
7.3.180.0060.00916.18
7.3.170.0120.00816.47
7.3.160.0100.00716.30
7.3.10.0000.01516.49
7.3.00.0030.00916.00
7.2.330.0120.00616.63
7.2.320.0070.01716.54
7.2.310.0060.00916.59
7.2.300.0070.01116.24
7.2.290.0090.01416.54
7.2.130.0080.00816.82
7.2.120.0080.00816.69
7.2.110.0060.00816.57
7.2.100.0000.01616.50
7.2.90.0090.00316.31
7.2.80.0030.00616.64
7.2.70.0030.01016.33
7.2.60.0050.01116.71
7.2.50.0030.01116.49
7.2.40.0140.00016.47
7.2.30.0060.00916.46
7.2.20.0060.00616.20
7.2.10.0100.00316.13
7.2.00.0050.00918.05
7.1.250.0000.00915.41
7.1.200.0030.00915.50
7.1.100.0070.00717.98
7.1.70.0030.00317.21
7.1.60.0030.02219.11
7.1.50.0060.01916.98
7.1.00.0100.07022.33
7.0.200.0120.00016.63
7.0.140.0070.07022.09
7.0.60.0070.05019.99
7.0.50.0130.07317.87
7.0.40.0100.08719.96
7.0.30.0200.06320.24
7.0.20.0330.07720.09
7.0.10.0230.06320.16
7.0.00.0100.07320.14
5.6.280.0030.07021.16
5.6.210.0170.07020.45
5.6.200.0070.08018.19
5.6.190.0100.08020.45
5.6.180.0400.04720.63
5.6.170.0270.07320.52
5.6.160.0030.04320.63
5.6.150.0030.05318.17
5.6.140.0070.03718.23
5.6.130.0130.07318.12
5.6.120.0070.07721.01
5.6.110.0100.06720.98
5.6.100.0130.04720.96
5.6.90.0000.06721.11
5.6.80.0130.04020.52
5.6.70.3130.03320.40
5.5.350.0000.08720.32
5.5.340.0070.03717.96
5.5.330.0070.04020.30
5.5.320.0430.04720.24
5.5.310.0230.03320.33
5.5.300.0100.06718.07
5.5.290.0030.05718.08
5.5.280.0070.04720.77
5.5.270.0170.06720.97
5.5.260.0130.07720.79
5.5.250.0070.09020.68
5.5.240.0330.06720.14
5.4.450.0100.06319.67
5.4.440.0700.05719.60
5.4.430.0200.05719.38
5.4.420.0830.00019.42
5.4.410.0630.00019.45
5.4.400.0670.00019.13
5.4.390.0630.00019.13
5.4.380.0670.00019.16
5.4.370.0630.00019.25
5.4.360.0630.00019.13
5.4.350.0770.00019.21
5.4.340.0160.05212.01
5.4.320.0070.04112.50
5.4.310.0170.06912.50
5.4.300.0070.04212.50
5.4.290.0040.04812.50
5.4.280.0120.03512.40
5.4.270.0050.05312.39
5.4.260.0060.04912.39
5.4.250.0060.03712.40
5.4.240.0090.03412.39
5.4.230.0050.04012.38
5.4.220.0070.03612.39
5.4.210.0020.04012.38
5.4.200.0070.04912.38
5.4.190.0080.04812.38
5.4.180.0050.04412.38
5.4.170.0080.03412.39
5.4.160.0110.04312.39
5.4.150.0050.04012.39
5.4.140.0040.04012.07
5.4.130.0080.03612.06
5.4.120.0070.03512.02
5.4.110.0050.03712.02
5.4.100.0050.03612.01
5.4.90.0080.03512.01
5.4.80.0070.03612.02
5.4.70.0100.03012.01
5.4.60.0070.03312.01
5.4.50.0090.03212.00
5.4.40.0030.03711.99
5.4.30.0090.04111.99
5.4.20.0030.04112.00
5.4.10.0070.03912.00
5.4.00.0030.04011.48
5.3.290.0060.05412.80
5.3.280.0120.06012.71
5.3.270.0070.05612.73
5.3.260.0070.04712.72
5.3.250.0130.04612.72
5.3.240.0100.04012.72
5.3.230.0100.04712.71
5.3.220.0080.03912.68
5.3.210.0130.04412.68
5.3.200.0060.05312.68
5.3.190.0190.08012.68
5.3.180.0080.05812.68
5.3.170.0100.05312.67
5.3.160.0090.04912.67
5.3.150.0090.06112.67
5.3.140.0130.07112.66
5.3.130.0110.06812.66
5.3.120.0260.10812.65
5.3.110.0110.05412.66
5.3.100.0390.08612.12
5.3.90.0130.04912.10
5.3.80.0070.05612.09
5.3.70.0170.08112.09
5.3.60.0150.05712.08
5.3.50.0220.11012.03
5.3.40.0090.06212.03
5.3.30.0080.05411.98
5.3.20.0090.05711.77
5.3.10.0090.06111.73
5.3.00.0310.07511.72
5.2.170.0090.0469.23
5.2.160.0100.0449.22
5.2.150.0060.0389.23
5.2.140.0140.0879.22
5.2.130.0160.0769.18
5.2.120.0070.0659.18
5.2.110.0130.0419.18
5.2.100.0120.0779.18
5.2.90.0050.0349.18
5.2.80.0100.0379.17
5.2.70.0060.0529.17
5.2.60.0090.0459.13
5.2.50.0080.0339.10
5.2.40.0050.0329.07
5.2.30.0150.0459.05
5.2.20.0070.0419.04
5.2.10.0050.0328.94
5.2.00.0090.0488.80
5.1.60.0210.0448.09
5.1.50.0110.0388.09
5.1.40.0030.0278.07
5.1.30.0070.0248.41
5.1.20.0070.0288.44
5.1.10.0040.0288.16
5.1.00.0050.0278.17
5.0.50.0040.0206.64
5.0.40.0080.0156.50
5.0.30.0060.0326.32
5.0.20.0030.0226.28
5.0.10.0030.0226.26
5.0.00.0050.0346.25
4.4.90.0040.0174.78
4.4.80.0090.0324.75
4.4.70.0060.0164.75
4.4.60.0040.0164.75
4.4.50.0030.0174.77
4.4.40.0020.0284.71
4.4.30.0050.0204.76
4.4.20.0060.0204.84
4.4.10.0060.0194.85
4.4.00.0040.0314.76
4.3.110.0010.0184.67
4.3.100.0040.0144.67
4.3.90.0030.0144.64
4.3.80.0060.0214.58
4.3.70.0050.0124.63
4.3.60.0060.0114.63
4.3.50.0010.0174.63
4.3.40.0010.0274.54
4.3.30.0030.0163.30
4.3.20.0020.0173.28
4.3.10.0030.0153.24
4.3.00.0030.0206.67

preferences:
43.91 ms | 401 KiB | 5 Q