3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DriverBaseService { private static $instance; public static function getInstance() { if(empty(self::$instance)) { self::$instance = new self(); } return self::$instance; } public function test() { echo __CLASS__; } } class DriverService extends DriverBaseService { public function xx() { echo "AAA\n"; } } DriverService::getInstance()->xx();

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.0120.00316.63
8.3.50.0120.00318.29
8.3.40.0110.00718.97
8.3.30.0110.00418.88
8.3.20.0030.00620.14
8.3.10.0040.00423.64
8.3.00.0090.00019.38
8.2.180.0070.00718.41
8.2.170.0070.01022.96
8.2.160.0140.00720.51
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00417.75
8.2.120.0040.00426.35
8.2.110.0060.00320.35
8.2.100.0080.00418.03
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0040.00717.93
8.2.50.0050.00318.07
8.2.40.0000.00819.52
8.2.30.0000.00720.65
8.2.20.0030.00617.60
8.2.10.0000.00818.07
8.2.00.0000.00718.05
8.1.280.0070.00725.92
8.1.270.0000.00923.91
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0060.00322.07
8.1.230.0120.00017.79
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00420.30
8.1.160.0040.00421.98
8.1.150.0080.00018.80
8.1.140.0040.00819.52
8.1.130.0030.00317.61
8.1.120.0000.00717.38
8.1.110.0000.00817.53
8.1.100.0070.00017.42
8.1.90.0000.00817.45
8.1.80.0040.00417.33
8.1.70.0040.00417.35
8.1.60.0040.00417.63
8.1.50.0030.00517.55
8.1.40.0050.00317.45
8.1.30.0050.00317.62
8.1.20.0040.00417.61
8.1.10.0060.00317.47
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.50
8.0.270.0000.00717.14
8.0.260.0050.00217.26
8.0.250.0040.00417.04
8.0.240.0000.00717.01
8.0.230.0040.00417.06
8.0.220.0000.00717.00
8.0.210.0070.00017.03
8.0.200.0040.00416.91
8.0.190.0030.00617.07
8.0.180.0000.00816.96
8.0.170.0000.00816.91
8.0.160.0080.00017.01
8.0.150.0080.00016.99
8.0.140.0030.00516.85
8.0.130.0030.00313.38
8.0.120.0080.00016.82
8.0.110.0000.00716.85
8.0.100.0020.00517.02
8.0.90.0000.00716.91
8.0.80.0090.00616.93
8.0.70.0030.00516.99
8.0.60.0040.00416.79
8.0.50.0070.00016.91
8.0.30.0110.00816.97
8.0.20.0060.01217.42
8.0.10.0070.00017.12
8.0.00.0090.00816.83
7.4.330.0000.00616.85
7.4.320.0030.00316.63
7.4.300.0070.00016.47
7.4.290.0030.00316.51
7.4.280.0000.00916.64
7.4.270.0040.00316.60
7.4.260.0030.00316.39
7.4.250.0070.00016.59
7.4.240.0040.00316.52
7.4.230.0050.00216.48
7.4.220.0090.01516.54
7.4.210.0040.01416.61
7.4.200.0030.00316.41
7.4.160.0090.00616.52
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0090.00916.60
7.4.120.0100.00716.53
7.4.110.0060.01316.46
7.4.100.0130.01016.51
7.4.90.0000.01616.47
7.4.80.0100.00619.39
7.4.70.0110.01116.49
7.4.60.0000.02116.75
7.4.50.0070.00716.65
7.4.40.0100.00716.54
7.4.30.0110.01116.28
7.4.00.0030.01015.13
7.3.330.0030.00313.15
7.3.320.0050.00013.23
7.3.310.0070.00016.40
7.3.300.0000.00616.41
7.3.290.0090.00716.41
7.3.280.0080.00816.36
7.3.270.0120.00617.40
7.3.260.0140.00316.43
7.3.250.0100.00916.38
7.3.240.0090.00716.38
7.3.230.0090.00916.48
7.3.210.0100.00716.54
7.3.200.0030.01316.50
7.3.190.0030.01416.50
7.3.180.0120.00616.36
7.3.170.0130.00316.58
7.3.160.0100.00616.41
7.3.10.0030.01016.51
7.3.00.0040.00816.56
7.2.330.0060.01116.73
7.2.320.0060.01816.68
7.2.310.0040.01816.33
7.2.300.0060.01316.66
7.2.290.0060.01616.73
7.2.130.0060.00616.50
7.2.120.0110.00717.05
7.2.110.0070.00716.94
7.2.100.0080.00316.68
7.2.90.0060.00916.96
7.2.80.0110.00016.94
7.2.70.0040.01116.97
7.2.60.0030.01016.83
7.2.50.0060.00916.86
7.2.40.0050.00516.74
7.2.30.0090.00617.02
7.2.20.0040.01416.73
7.2.10.0000.01016.71
7.2.00.0100.00718.08
7.1.250.0030.01015.68
7.1.200.0030.01015.59
7.1.100.0070.00717.97
7.1.70.0030.00616.89
7.1.60.0090.01519.36
7.1.50.0070.01716.53
7.1.00.0130.06722.44
7.0.200.0000.00716.46
7.0.60.0130.07719.95
7.0.50.0070.08017.87
7.0.40.0030.05020.40
7.0.30.0200.03720.30
7.0.20.0300.07320.21
7.0.10.0030.09020.30
7.0.00.0070.04020.22
5.6.280.0070.05720.93
5.6.210.0070.07720.48
5.6.200.0130.07718.29
5.6.190.0000.08320.50
5.6.180.0270.03720.41
5.6.170.0300.06020.54
5.6.160.0000.09020.39
5.6.150.0100.03318.16
5.6.140.0170.07018.14
5.6.130.0030.04018.13
5.6.120.0030.05720.90
5.6.110.0070.08721.14
5.6.100.0100.08020.91
5.6.90.0130.07721.13
5.6.80.0130.07720.38
5.5.350.0300.07320.54
5.5.340.0070.08318.02
5.5.330.0030.04720.29
5.5.320.0070.03320.24
5.5.310.0330.05320.28
5.5.300.0070.08018.07
5.5.290.0070.06018.08
5.5.280.0030.07720.81
5.5.270.0130.07720.87
5.5.260.0100.04020.76
5.5.250.0100.06720.46
5.5.240.0270.06320.08

preferences:
51.96 ms | 401 KiB | 5 Q