3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Super { public function __construct($something) { $this->something = $something; } public static function make($array) { return array_map(function ($el) { return new static($el); }, $array); } } class Child extends Super { } echo phpversion(), "\n"; print_r(Child::make([1,2,3]));

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)
7.4.00.0040.01515.00
7.3.120.0060.01014.80
7.3.110.0070.01115.08
7.3.100.0060.00314.75
7.3.90.0080.00614.48
7.3.80.0070.01014.64
7.3.70.0100.00614.70
7.3.60.0120.00314.66
7.3.50.0140.00314.85
7.3.40.0070.00714.78
7.3.30.0060.00914.56
7.3.20.0090.00616.62
7.3.10.0070.00916.52
7.3.00.0060.00916.58
7.2.250.0030.01315.08
7.2.240.0060.01314.79
7.2.230.0060.00914.54
7.2.220.0060.00314.94
7.2.210.0060.01215.17
7.2.200.0090.00914.58
7.2.190.0130.00714.80
7.2.180.0040.00814.68
7.2.170.0000.01814.72
7.2.130.0070.00516.87
7.2.120.0070.00616.89
7.2.110.0090.00716.88
7.2.100.0050.00516.71
7.2.90.0080.00916.69
7.2.80.0020.01316.85
7.2.70.0050.00516.93
7.2.60.0080.00516.76
7.2.50.0090.00516.79
7.2.40.0070.00716.77
7.2.30.0090.00516.94
7.2.20.0050.00816.72
7.2.10.0060.00516.86
7.2.00.0110.00316.88
7.1.330.0100.00315.39
7.1.320.0040.00815.58
7.1.310.0100.00715.59
7.1.300.0030.01515.79
7.1.290.0040.00815.59
7.1.280.0030.01315.70
7.1.270.0140.00315.74
7.1.260.0000.01215.86
7.1.250.0000.01515.72
7.1.240.0110.01115.70
7.1.230.0040.01115.84
7.1.220.0060.00915.91
7.1.210.0070.00715.79
7.1.200.0060.00615.53
7.1.190.0040.01115.60
7.1.180.0000.01315.86
7.1.170.0100.00715.83
7.1.160.0080.00615.89
7.1.150.0070.00715.77
7.1.140.0130.00015.88
7.1.130.0030.01215.80
7.1.120.0000.01515.68
7.1.110.0090.00615.95
7.1.100.0030.00915.90
7.1.90.0060.00615.53
7.1.80.0110.00615.69
7.1.70.0030.00816.38
7.1.60.0070.01117.57
7.1.50.0140.01025.29
7.1.40.0030.00715.67
7.1.30.0030.01315.78
7.1.20.0040.00715.68
7.1.10.0060.00615.79
7.1.00.0050.04219.10
7.0.330.0150.00415.29
7.0.320.0100.00015.22
7.0.310.0030.00915.37
7.0.300.0060.00615.27
7.0.290.0030.00715.43
7.0.280.0070.00715.42
7.0.270.0030.00915.19
7.0.260.0060.00315.52
7.0.250.0030.01015.14
7.0.240.0140.00015.51
7.0.230.0070.00715.36
7.0.220.0090.00315.55
7.0.210.0130.00315.36
7.0.200.0110.00615.97
7.0.190.0040.00415.50
7.0.180.0040.01115.32
7.0.170.0040.00415.47
7.0.160.0050.00515.24
7.0.150.0070.01015.41
7.0.140.0050.02018.67
7.0.130.0060.00915.57
7.0.120.0090.00315.45
7.0.110.0090.00015.22
7.0.100.0100.03617.62
7.0.90.0050.04817.61
7.0.80.0090.04217.59
7.0.70.0090.04217.56
7.0.60.0020.04817.64
7.0.50.0300.04517.90
7.0.40.0070.04716.73
7.0.30.0060.04616.80
7.0.20.0070.04316.82
7.0.10.0110.02016.78
7.0.00.0080.04316.62
5.6.380.0090.00014.28
5.6.370.0070.00714.35
5.6.360.0100.00614.16
5.6.350.0070.00714.41
5.6.340.0040.01114.08
5.6.330.0110.00014.27
5.6.320.0040.00714.18
5.6.310.0100.00314.38
5.6.300.0040.01114.21
5.6.290.0030.01014.24
5.6.280.0110.04217.55
5.6.270.0000.01314.46
5.6.260.0070.00714.36
5.6.250.0130.03817.40
5.6.240.0030.05217.55
5.6.230.0030.04517.39
5.6.220.0030.04717.38
5.6.210.0080.04517.34
5.6.200.0030.02717.71
5.6.190.0070.04417.62
5.6.180.0120.04117.66
5.6.170.0140.03917.49
5.6.160.0070.04617.60
5.6.150.0110.04417.77
5.6.140.0040.04517.64
5.6.130.0050.04517.56
5.6.120.0020.04017.53
5.6.110.0050.04517.66
5.6.100.0080.04517.62
5.6.90.0050.04617.69
5.6.80.0080.04517.33
5.6.70.0070.04217.23
5.6.60.0030.04917.24
5.6.50.0080.03717.32
5.6.40.0050.04217.23
5.6.30.0120.03817.19
5.6.20.0140.03717.31
5.6.10.0080.03517.30
5.6.00.0100.03517.31
5.5.380.0050.04315.64
5.5.370.0090.03615.73
5.5.360.0100.03615.85
5.5.350.0060.04015.78
5.5.340.0070.04515.84
5.5.330.0050.03416.06
5.5.320.0030.04015.92
5.5.310.0070.03015.97
5.5.300.0070.04215.82
5.5.290.0080.04115.88
5.5.280.0070.04515.88
5.5.270.0120.02716.12
5.5.260.0060.02816.03
5.5.250.0110.03315.88
5.5.240.0070.04015.77
5.5.230.0020.05015.52
5.5.220.0070.01815.71
5.5.210.0070.04015.61
5.5.200.0070.04215.48
5.5.190.0050.03715.63
5.5.180.0100.04315.56
5.5.170.0000.01011.20
5.5.160.0070.03715.63
5.5.150.0040.04315.50
5.5.140.0100.03915.38
5.5.130.0000.04415.69
5.5.120.0050.04015.74
5.5.110.0070.04215.71
5.5.100.0070.03715.65
5.5.90.0060.03715.40
5.5.80.0070.03915.43
5.5.70.0070.03415.43
5.5.60.0050.04415.64
5.5.50.0050.04315.59
5.5.40.0090.03815.66
5.5.30.0060.03615.36
5.5.20.0050.04415.35
5.5.10.0080.04015.32
5.5.00.0060.04115.57
5.4.450.0050.04515.27
5.4.440.0030.04215.04
5.4.430.0050.04215.33
5.4.420.0080.04415.23
5.4.410.0070.02715.13
5.4.400.0040.04414.89
5.4.390.0090.02314.90
5.4.380.0050.02915.16
5.4.370.0030.03614.80
5.4.360.0080.03515.01
5.4.350.0090.04014.92
5.4.340.0050.03115.04
5.4.330.0060.00311.11
5.4.320.0030.04514.99
5.4.310.0090.03414.97
5.4.300.0070.03714.96
5.4.290.0090.02115.00
5.4.280.0110.03514.83
5.4.270.0090.03814.92
5.4.260.0070.03514.92
5.4.250.0040.04214.79
5.4.240.0080.03515.07
5.4.230.0100.03514.90
5.4.220.0030.04315.01
5.4.210.0080.03914.91
5.4.200.0030.04614.96
5.4.190.0060.03314.83
5.4.180.0080.04114.85
5.4.170.0000.04714.69
5.4.160.0080.04214.98
5.4.150.0060.04114.77
5.4.140.0050.03513.75
5.4.130.0090.03713.60
5.4.120.0100.03413.62
5.4.110.0040.04413.66
5.4.100.0030.04313.59
5.4.90.0120.03313.51
5.4.80.0060.04013.68
5.4.70.0090.04013.52
5.4.60.0050.03813.57
5.4.50.0030.04013.54
5.4.40.0050.03713.77
5.4.30.0100.03513.66
5.4.20.0030.03013.63
5.4.10.0090.03513.69
5.4.00.0080.03813.43
5.3.290.0100.03712.55
5.3.280.0020.03712.38
5.3.270.0030.02812.49
5.3.260.0030.02312.37
5.3.250.0110.03612.44
5.3.240.0050.02812.42
5.3.230.0030.04112.35
5.3.220.0020.02812.42
5.3.210.0030.03812.33
5.3.200.0050.04012.45
5.3.190.0050.03512.31
5.3.180.0090.03212.55
5.3.170.0020.03312.37
5.3.160.0050.03912.59
5.3.150.0050.04012.53
5.3.140.0100.03512.55
5.3.130.0050.03712.52
5.3.120.0090.03612.52
5.3.110.0030.04312.48
5.3.100.0090.03312.23
5.3.90.0050.04012.20
5.3.80.0020.02712.29
5.3.70.0050.02312.22
5.3.60.0100.02212.33
5.3.50.0050.04012.26
5.3.40.0060.02312.11
5.3.30.0070.03812.24
5.3.20.0100.02712.27
5.3.10.0050.02812.15
5.3.00.0040.03712.16
5.2.170.0080.03012.10
5.2.160.0050.02912.10
5.2.150.0000.03712.10
5.2.140.0020.03512.10
5.2.130.0030.02012.10
5.2.120.0100.02812.10
5.2.110.0050.01812.10
5.2.100.0060.02812.10
5.2.90.0050.02712.10
5.2.80.0050.03612.10
5.2.70.0070.03012.10
5.2.60.0020.03612.10
5.2.50.0020.03112.10
5.2.40.0030.03312.10
5.2.30.0030.03212.10
5.2.20.0050.03112.10
5.2.10.0020.03412.10
5.2.00.0020.02512.10
5.1.60.0060.02412.10
5.1.50.0070.02312.10
5.1.40.0020.02512.10
5.1.30.0030.02012.10
5.1.20.0060.02912.10
5.1.10.0030.02812.10
5.1.00.0040.02812.10
5.0.50.0000.03012.10
5.0.40.0030.02212.10
5.0.30.0030.03512.10
5.0.20.0030.02312.10
5.0.10.0070.01512.10
5.0.00.0060.03212.10
4.4.90.0000.02212.10
4.4.80.0020.02012.10
4.4.70.0070.01512.10
4.4.60.0030.02012.10
4.4.50.0030.01812.10
4.4.40.0040.02912.10
4.4.30.0030.01812.10
4.4.20.0050.01712.10
4.4.10.0020.02012.10
4.4.00.0020.02712.10
4.3.110.0000.02112.10
4.3.100.0030.01812.10
4.3.90.0050.01712.10
4.3.80.0050.02512.10
4.3.70.0000.02112.10
4.3.60.0000.02212.10
4.3.50.0010.01812.10
4.3.40.0020.02512.10
4.3.30.0020.02112.10
4.3.20.0000.02212.10
4.3.10.0030.01712.10
4.3.00.0020.02012.10

preferences:
29.97 ms | 401 KiB | 5 Q