3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = new stdClass(); $t->tets = 'sd'; var_dump(!empty($t->test)); die; abstract class T { static public $instanses; final private function __construct(){ } public static function getInstance() { if (!(static::$instanses instanceof static)) { static::$instanses = new static; } return static::$instanses; } } class A extends T { static public $instanses; } class B extends A { static public $instanses; } $t = A::getInstance(); var_dump($t); $t1 = B::getInstance(); var_dump($t1); new 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.0120.00616.75
8.3.50.0080.01122.06
8.3.40.0120.00918.83
8.3.30.0120.00318.77
8.3.20.0040.00420.16
8.3.10.0060.00323.52
8.3.00.0030.00619.38
8.2.180.0040.01418.54
8.2.170.0040.01122.96
8.2.160.0140.00320.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00317.50
8.2.110.0060.00321.18
8.2.100.0040.00717.84
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.92
8.2.50.0030.00518.07
8.2.40.0040.00419.38
8.2.30.0040.00420.58
8.2.20.0080.00017.67
8.2.10.0000.00717.93
8.2.00.0050.00317.93
8.1.280.0150.00025.92
8.1.270.0070.01023.97
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00020.91
8.1.230.0080.00417.42
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00717.35
8.1.180.0040.00418.10
8.1.170.0080.00018.96
8.1.160.0000.00722.01
8.1.150.0050.00218.79
8.1.140.0000.00819.62
8.1.130.0000.00717.70
8.1.120.0040.00417.46
8.1.110.0040.00417.45
8.1.100.0000.00717.46
8.1.90.0050.00317.44
8.1.80.0000.00717.40
8.1.70.0030.00317.33
8.1.60.0070.00417.46
8.1.50.0030.00617.52
8.1.40.0030.00517.52
8.1.30.0030.00517.48
8.1.20.0070.00317.51
8.1.10.0080.00017.61
8.1.00.0040.00417.39
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0000.00718.44
8.0.270.0000.00717.20
8.0.260.0060.00017.25
8.0.250.0000.00816.89
8.0.240.0060.00317.05
8.0.230.0000.00716.90
8.0.220.0000.00816.93
8.0.210.0070.00016.84
8.0.200.0030.00317.02
8.0.190.0030.00616.91
8.0.180.0040.00716.80
8.0.170.0040.00417.00
8.0.160.0050.00216.84
8.0.150.0040.00416.76
8.0.140.0040.00416.82
8.0.130.0000.00613.31
8.0.120.0030.00516.89
8.0.110.0070.00016.81
8.0.100.0070.00016.95
8.0.90.0000.00816.92
8.0.80.0060.00916.87
8.0.70.0050.00216.91
8.0.60.0040.00416.91
8.0.50.0000.00716.89
8.0.30.0100.01117.04
8.0.20.0110.00817.40
8.0.10.0060.00316.95
8.0.00.0100.01016.67
7.4.330.0000.00515.09
7.4.320.0030.00316.49
7.4.300.0060.00016.64
7.4.290.0030.00316.53
7.4.280.0040.00416.63
7.4.270.0040.00416.48
7.4.260.0040.00416.62
7.4.250.0030.00316.40
7.4.240.0000.00716.35
7.4.230.0040.00416.44
7.4.220.0120.00616.60
7.4.210.0060.00816.62
7.4.200.0000.00716.25
7.4.160.0100.00716.60
7.4.150.0070.01117.40
7.4.140.0120.00817.86
7.4.130.0080.01216.50
7.4.120.0080.00816.38
7.4.110.0070.01416.43
7.4.100.0230.00016.46
7.4.90.0030.01916.47
7.4.80.0130.01019.39
7.4.70.0100.00816.35
7.4.60.0080.00816.66
7.4.50.0000.00516.44
7.4.40.0080.00816.48
7.4.30.0160.00016.49
7.4.00.0070.01114.80
7.3.330.0000.00513.15
7.3.320.0000.00613.32
7.3.310.0000.00716.30
7.3.300.0000.00716.16
7.3.290.0070.00816.29
7.3.280.0100.00616.27
7.3.270.0130.00417.40
7.3.260.0060.01216.52
7.3.250.0130.00716.42
7.3.240.0070.01216.47
7.3.230.0120.01216.50
7.3.210.0080.00816.23
7.3.200.0000.02116.57
7.3.190.0110.01116.47
7.3.180.0090.01016.65
7.3.170.0060.00916.45
7.3.160.0040.01216.45
7.3.10.0160.00316.25
7.3.00.0090.00916.51
7.2.330.0170.00316.79
7.2.320.0030.02016.77
7.2.310.0060.01116.75
7.2.300.0170.00316.63
7.2.290.0060.01316.70
7.2.130.0110.01116.42
7.2.120.0100.01616.55
7.2.110.0100.00516.57
7.2.100.0130.00916.31
7.2.90.0110.01116.32
7.2.80.0120.01216.43
7.2.70.0090.01216.93
7.2.60.0150.00416.71
7.2.50.0090.00916.48
7.2.40.0070.01316.28
7.2.30.0190.00917.07
7.2.20.0120.00916.56
7.2.10.0100.01016.61
7.2.00.0080.00618.07
7.1.250.0190.00015.34
7.1.200.0000.01515.32
7.1.100.0030.01018.05
7.1.70.0100.00316.82
7.1.60.0040.00719.43
7.1.50.0070.01316.82
7.1.00.0130.06722.36
7.0.200.0660.00314.69
7.0.60.0130.03719.86
7.0.50.0070.08017.89
7.0.40.0070.04020.40
7.0.30.0200.04720.30
7.0.20.0130.04320.22
7.0.10.0100.04020.06
7.0.00.0070.08720.07
5.6.210.0070.08320.51
5.6.200.0030.08318.18
5.6.190.0030.04320.57
5.6.180.0200.04020.63
5.6.170.0100.05720.58
5.6.160.0070.08320.55
5.6.150.0000.08718.18
5.6.140.0070.08318.23
5.6.130.0070.04018.28
5.6.120.0100.08021.12
5.6.110.0100.07721.11
5.6.100.0070.09021.13
5.6.90.0100.08321.04
5.6.80.0100.07020.29
5.5.350.0200.05720.42
5.5.340.0130.07717.94
5.5.330.0100.08320.40
5.5.320.0300.07020.27
5.5.310.0330.07720.34
5.5.300.0070.05718.01
5.5.290.0030.08317.98
5.5.280.0100.08720.66
5.5.270.0100.08020.77
5.5.260.0100.08320.68
5.5.250.0100.08320.59
5.5.240.0070.08320.34
5.4.450.0270.05319.31
5.4.440.0170.05319.12
5.4.430.0230.05719.45
5.4.420.0230.04719.48
5.4.410.0200.04719.32
5.4.400.0200.04719.25
5.4.390.0230.06019.14
5.4.380.0270.06319.25
5.4.370.0130.05719.10
5.4.360.0230.05319.26
5.4.350.0130.05719.27
5.4.340.0200.05019.13
5.4.320.0330.06319.01
5.4.310.0230.06319.10
5.4.300.0070.06018.94
5.4.290.0030.07019.14
5.4.280.0100.07319.24
5.4.270.0200.05719.27
5.4.260.0130.05319.24
5.4.250.0170.05019.12
5.4.240.0130.05719.10
5.4.230.0230.05318.79
5.4.220.0200.05318.96
5.4.210.0130.05719.10
5.4.200.0200.04719.36
5.4.190.0270.06319.10
5.4.180.0170.06319.13
5.4.170.0130.05719.07
5.4.160.0170.07718.81
5.4.150.0130.05719.08
5.4.140.0230.04016.48
5.4.130.0130.05016.58
5.4.120.0330.03316.31
5.4.110.0170.05316.29
5.4.100.0070.05716.55
5.4.90.0170.05016.64
5.4.80.0130.05316.41
5.4.70.0100.05716.64
5.4.60.0170.04716.22
5.4.50.0100.05316.48
5.4.40.0130.05016.48
5.4.30.0130.06016.41
5.4.20.0130.05016.13
5.4.10.0130.05716.20
5.4.00.0130.05015.75

preferences:
41.67 ms | 401 KiB | 5 Q