3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function create() { $class = get_called_class(); $inst = new $class; return $inst; } } class Bar extends Foo { function __contruct() { parent::constsssdfvdruct(); } } $bar = Bar::create(); var_dump($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.0140.00718.43
8.3.50.0070.01222.05
8.3.40.0150.00618.49
8.3.30.0060.00918.59
8.3.20.0040.00420.09
8.3.10.0080.00023.65
8.3.00.0050.00519.13
8.2.180.0070.01116.63
8.2.170.0070.00722.96
8.2.160.0070.00720.52
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00017.59
8.2.110.0110.00021.98
8.2.100.0120.00017.93
8.2.90.0050.00219.08
8.2.80.0030.00617.97
8.2.70.0060.00617.38
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0060.00319.28
8.2.30.0000.00720.67
8.2.20.0050.00317.67
8.2.10.0040.00417.86
8.2.00.0000.00718.03
8.1.280.0030.01725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.52
8.1.230.0040.00717.66
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.11
8.1.190.0060.00617.13
8.1.180.0040.00418.10
8.1.170.0040.00418.83
8.1.160.0000.00721.91
8.1.150.0000.00718.83
8.1.140.0030.00519.56
8.1.130.0000.00817.61
8.1.120.0000.00717.23
8.1.110.0000.00717.37
8.1.100.0000.00817.42
8.1.90.0030.00417.40
8.1.80.0070.00017.40
8.1.70.0000.00717.30
8.1.60.0040.00417.47
8.1.50.0000.00817.47
8.1.40.0000.01117.54
8.1.30.0080.00017.69
8.1.20.0000.00817.65
8.1.10.0030.00517.53
8.1.00.0000.00717.53
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0000.00717.24
8.0.260.0030.00317.09
8.0.250.0000.00816.95
8.0.240.0040.00416.95
8.0.230.0000.00816.78
8.0.220.0030.00516.86
8.0.210.0070.00016.75
8.0.200.0000.00816.77
8.0.190.0000.00816.71
8.0.180.0080.00016.80
8.0.170.0030.00616.76
8.0.160.0040.00416.71
8.0.150.0040.00416.82
8.0.140.0000.00716.65
8.0.130.0000.00613.28
8.0.120.0030.00516.70
8.0.110.0000.00816.64
8.0.100.0000.00716.68
8.0.90.0040.00416.77
8.0.80.0130.00316.76
8.0.70.0000.00816.73
8.0.60.0070.00016.82
8.0.50.0040.00416.91
8.0.30.0060.01116.89
8.0.20.0110.01017.40
8.0.10.0030.00516.77
8.0.00.0080.01016.88
7.4.330.0060.00015.08
7.4.320.0030.00316.53
7.4.300.0000.00716.54
7.4.290.0040.00416.59
7.4.280.0000.00716.58
7.4.270.0060.00016.50
7.4.260.0030.00316.59
7.4.250.0070.00016.56
7.4.240.0030.00316.46
7.4.230.0070.00016.43
7.4.220.0070.01116.53
7.4.210.0070.01016.55
7.4.200.0080.00016.70
7.4.160.0070.00716.33
7.4.150.0140.00317.40
7.4.140.0140.00517.86
7.4.130.0060.01116.49
7.4.120.0090.00916.53
7.4.110.0080.01116.46
7.4.100.0100.01116.47
7.4.90.0090.00916.65
7.4.80.0170.00719.39
7.4.70.0070.01016.32
7.4.60.0040.01116.46
7.4.50.0000.00416.27
7.4.40.0080.01116.34
7.4.30.0140.00416.43
7.4.10.0110.00716.18
7.4.00.0070.00615.51
7.3.330.0050.00313.22
7.3.320.0000.00613.32
7.3.310.0070.00016.06
7.3.300.0000.00616.26
7.3.290.0000.00616.24
7.3.280.0050.01016.27
7.3.270.0030.01517.40
7.3.260.0150.00316.50
7.3.250.0140.00616.41
7.3.240.0120.00616.34
7.3.230.0060.01016.39
7.3.210.0040.01116.39
7.3.200.0080.00916.48
7.3.190.0090.01216.46
7.3.180.0040.01116.36
7.3.170.0070.01716.59
7.3.160.0100.00716.51
7.3.130.0070.00416.56
7.3.120.0050.00815.48
7.3.110.0070.01015.57
7.3.100.0080.00815.49
7.3.90.0050.01315.46
7.3.80.0060.01015.43
7.3.70.0070.00615.54
7.3.60.0080.00515.59
7.3.50.0070.00815.52
7.3.40.0020.01015.35
7.3.30.0090.00715.40
7.3.20.0030.00917.35
7.3.10.0050.00917.41
7.3.00.0030.00917.39
7.2.330.0100.00716.64
7.2.320.0100.00716.58
7.2.310.0090.00916.61
7.2.300.0090.00916.59
7.2.290.0070.01016.55
7.2.260.0100.00316.32
7.2.250.0110.00815.69
7.2.240.0050.01215.80
7.2.230.0030.01415.60
7.2.220.0030.01315.68
7.2.210.0090.00715.54
7.2.200.0060.00815.76
7.2.190.0070.00415.59
7.2.180.0070.00615.46
7.2.170.0060.00715.76
7.2.160.0000.01516.36
7.2.150.0030.00718.30
7.2.140.0070.00718.27
7.2.130.0000.01118.24
7.2.120.0030.00718.22
7.2.110.0000.01218.37
7.2.100.0030.01018.31
7.2.90.0080.00818.19
7.2.80.0080.00817.32
7.2.70.0030.01018.29
7.2.60.0080.00617.44
7.2.50.0070.01418.29
7.2.40.0060.00918.30
7.2.30.0120.00418.27
7.2.20.0150.00418.43
7.2.10.0070.00318.37
7.2.00.0050.00518.66
7.1.330.0050.00916.65
7.1.320.0030.00916.71
7.1.310.0070.00916.54
7.1.300.0110.00316.47
7.1.290.0080.00616.63
7.1.280.0080.00316.43
7.1.270.0090.00316.60
7.1.260.0030.01016.50
7.1.250.0080.00317.30
7.1.240.0030.00917.49
7.1.230.0000.01117.27
7.1.220.0000.01317.27
7.1.210.0030.00617.42
7.1.200.0070.00616.58
7.1.190.0110.00717.26
7.1.180.0070.01317.23
7.1.170.0090.00617.30
7.1.160.0030.01017.36
7.1.150.0120.00417.18
7.1.140.0050.00517.36
7.1.130.0000.01817.34
7.1.120.0030.00917.34
7.1.110.0000.01117.33
7.1.100.0300.00916.60
7.1.90.0040.01117.39
7.1.80.0130.00617.31
7.1.70.0070.00517.37
7.1.60.0100.01018.42
7.1.50.0160.00626.03
7.1.40.0070.00717.20
7.1.30.0040.01117.36
7.1.20.0000.01417.46
7.1.10.0100.00717.29
7.1.00.0050.03819.85
7.0.330.0070.00716.86
7.0.320.0060.00316.95
7.0.310.0040.00716.86
7.0.300.0030.01417.02
7.0.290.0060.00616.82
7.0.280.0090.00316.99
7.0.270.0000.01316.96
7.0.260.0060.00316.99
7.0.250.0100.00717.13
7.0.240.0100.01016.99
7.0.230.0060.01217.16
7.0.220.0060.00617.03
7.0.210.0070.00716.99
7.0.200.0140.00315.81
7.0.190.0000.01417.11
7.0.180.0110.00417.08
7.0.170.0060.00617.03
7.0.160.0040.01117.10
7.0.150.0080.00816.96
7.0.140.0000.01217.03
7.0.130.0040.00816.94
7.0.120.0030.00916.99
7.0.110.0040.01117.02
7.0.100.0070.01016.92
7.0.90.0030.00717.15
7.0.80.0040.01116.91
7.0.70.0030.01316.97
7.0.60.0050.02518.37
7.0.50.0030.04817.49
7.0.40.0070.04417.54
7.0.30.0220.03817.49
7.0.20.0170.02517.52
7.0.10.0080.04517.51
7.0.00.0000.02717.63
5.6.400.0090.00616.05
5.6.390.0100.00315.80
5.6.380.0070.00715.85
5.6.370.0080.00815.57
5.6.360.0060.00915.99
5.6.350.0090.00615.65
5.6.340.0100.00315.68
5.6.330.0060.00615.95
5.6.320.0030.01716.10
5.6.310.0090.00615.80
5.6.300.0090.00615.95
5.6.290.0080.00515.88
5.6.280.0030.03318.54
5.6.270.0030.01216.16
5.6.260.0030.01316.19
5.6.250.0030.01416.11
5.6.240.0080.00815.97
5.6.230.0080.00415.84
5.6.220.0130.00615.81
5.6.210.0080.04318.12
5.6.200.0100.04117.06
5.6.190.0030.04818.27
5.6.180.0160.03118.20
5.6.170.0110.02318.18
5.6.160.0070.04518.00
5.6.150.0110.04217.07
5.6.140.0070.04717.08
5.6.130.0020.04917.03
5.6.120.0030.03418.52
5.6.110.0100.03518.40
5.6.100.0080.03418.55
5.6.90.0110.02618.44
5.6.80.0030.04718.05
5.6.70.0000.01315.73
5.6.60.0030.00715.75
5.6.50.0030.00616.03
5.6.40.0030.01015.83
5.6.30.0080.00815.86
5.6.20.0030.01315.55
5.6.10.0030.01215.91
5.6.00.0030.01015.56
5.5.380.0080.00815.81
5.5.370.0070.00715.69
5.5.360.0110.00715.84
5.5.350.2180.02218.04
5.5.340.0050.04017.03
5.5.330.0060.03818.12
5.5.320.0210.04218.07
5.5.310.0170.03517.92
5.5.300.0050.04416.81
5.5.290.0070.04016.83
5.5.280.0110.03718.26
5.5.270.0050.03418.38
5.5.260.0100.04018.31
5.5.250.0110.03718.10
5.5.240.0050.02217.98
5.5.230.0110.00015.64
5.5.220.0040.00715.63
5.5.210.0060.00615.64
5.5.200.0100.00715.64
5.5.190.0070.01015.57
5.5.180.0060.00915.54
5.5.170.0030.00615.84
5.5.160.0000.01115.59
5.5.150.0000.01115.77
5.5.140.0090.00315.59
5.5.130.0060.00915.74
5.5.120.0030.00615.64
5.5.110.0030.01015.70
5.5.100.0030.00915.57
5.5.90.0090.00315.72
5.5.80.0060.00915.61
5.5.70.0090.00615.79
5.5.60.0060.01215.89
5.5.50.0120.00615.62
5.5.40.0070.01015.52
5.5.30.0110.00715.79
5.5.20.0000.01215.69
5.5.10.0090.00615.75
5.5.00.0000.00915.62

preferences:
58.03 ms | 401 KiB | 5 Q