3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CurrentOrder { static $orderID = 0; public static function get() { self::$orderID = 'hot dogs'; } public function getOrderID() { return $this->$orderID; } } $order = new CurrentOrder; var_dump($order->getOrderID());

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.0040.01118.56
8.3.50.0150.00521.27
8.3.40.0140.00018.68
8.3.30.0070.00718.95
8.3.20.0080.00020.36
8.3.10.0050.00322.09
8.3.00.0000.00822.43
8.2.180.0110.00716.50
8.2.170.0110.00722.96
8.2.160.0060.00919.21
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.01426.16
8.2.120.0050.00319.54
8.2.110.0060.00322.31
8.2.100.0070.00419.25
8.2.90.0080.00019.17
8.2.80.0070.00019.41
8.2.70.0000.00817.75
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0030.00617.95
8.2.20.0000.00717.73
8.2.10.0000.00717.68
8.2.00.0050.00317.84
8.1.280.0040.01525.92
8.1.270.0060.00318.39
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0030.00623.99
8.1.230.0080.00319.21
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0000.00917.36
8.1.190.0050.00317.41
8.1.180.0050.00318.69
8.1.170.0050.00318.59
8.1.160.0070.00022.05
8.1.150.0040.00418.65
8.1.140.0060.00317.38
8.1.130.0050.00517.83
8.1.120.0050.00317.48
8.1.110.0050.00217.46
8.1.100.0040.00417.34
8.1.90.0050.00217.48
8.1.80.0040.00417.40
8.1.70.0030.00317.43
8.1.60.0000.00817.60
8.1.50.0100.00017.42
8.1.40.0000.00717.51
8.1.30.0030.00617.63
8.1.20.0040.00417.69
8.1.10.0060.00317.54
8.1.00.0000.00717.59
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0000.00718.42
8.0.270.0040.00317.26
8.0.260.0030.00316.84
8.0.250.0000.00616.89
8.0.240.0030.00517.08
8.0.230.0030.00517.06
8.0.220.0040.00416.97
8.0.210.0020.00517.03
8.0.200.0000.00616.89
8.0.190.0030.00517.04
8.0.180.0000.00716.94
8.0.170.0080.00016.88
8.0.160.0080.00016.81
8.0.150.0040.00416.95
8.0.140.0070.00016.76
8.0.130.0050.00013.48
8.0.120.0000.00816.75
8.0.110.0000.00816.95
8.0.100.0000.00816.99
8.0.90.0050.00216.92
8.0.80.0110.00416.93
8.0.70.0000.00716.93
8.0.60.0000.00716.79
8.0.50.0030.00516.75
8.0.30.0160.00317.16
8.0.20.0080.01517.41
8.0.10.0050.00216.91
8.0.00.0060.01416.54
7.4.330.0020.00215.00
7.4.320.0000.00716.55
7.4.300.0030.00316.51
7.4.290.0000.00616.52
7.4.280.0070.00016.54
7.4.270.0040.00416.50
7.4.260.0030.00616.48
7.4.250.0000.00716.52
7.4.240.0030.00316.55
7.4.230.0030.00316.68
7.4.220.0070.01016.45
7.4.210.0020.01216.55
7.4.200.0000.00716.66
7.4.190.0070.00016.48
7.4.160.0080.00816.39
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0070.01016.43
7.4.120.0030.01416.42
7.4.110.0090.00816.65
7.4.100.0190.00416.56
7.4.90.0100.00716.55
7.4.80.0060.01219.39
7.4.70.0070.01016.62
7.4.60.0090.00616.25
7.4.50.0030.00516.53
7.4.40.0130.00022.77
7.4.30.0080.01416.42
7.4.00.0000.01114.96
7.3.330.0030.00313.36
7.3.320.0000.00613.29
7.3.310.0040.00416.36
7.3.300.0030.00316.33
7.3.290.0090.00916.38
7.3.280.0090.00816.36
7.3.270.0080.00817.40
7.3.260.0080.00816.29
7.3.250.0070.01016.36
7.3.240.0110.00716.34
7.3.230.0130.00316.39
7.3.210.0110.00716.39
7.3.200.0030.01419.39
7.3.190.0120.00916.43
7.3.180.0050.01416.53
7.3.170.0070.00816.37
7.3.160.0130.00316.43
7.3.120.0090.00615.00
7.3.10.0100.00316.58
7.3.00.0000.00916.84
7.2.330.0170.00316.73
7.2.320.0080.01116.41
7.2.310.0170.00016.31
7.2.300.0070.01016.34
7.2.290.0120.00316.53
7.2.130.0060.00316.94
7.2.120.0120.00316.94
7.2.110.0130.00016.92
7.2.100.0060.00616.84
7.2.90.0100.00716.99
7.2.80.0120.00016.65
7.2.70.0030.00616.82
7.2.60.0050.00816.88
7.2.50.0060.00916.70
7.2.40.0000.01116.75
7.2.30.0090.00016.79
7.2.20.0130.00316.66
7.2.10.0080.00516.76
7.2.00.0020.00917.83
7.1.250.0080.00315.70
7.1.200.0000.01115.82
7.1.100.0000.01317.93
7.1.70.0060.00317.29
7.1.60.0100.01419.82
7.1.50.0070.01016.63
7.1.00.0030.03722.45
7.0.200.0030.00716.70
7.0.140.0100.06722.00
7.0.60.0100.08320.02
7.0.50.0200.07317.88
7.0.40.0130.07320.28
7.0.30.0430.08020.30
7.0.20.0300.07020.24
7.0.10.0030.05720.30
7.0.00.0100.05320.20
5.6.280.0130.06320.92
5.6.210.0130.08020.65
5.6.200.0070.05318.14
5.6.190.0030.08320.33
5.6.180.0170.04320.52
5.6.170.0170.04020.39
5.6.160.0030.05320.55
5.6.150.0100.07018.23
5.6.140.0070.08018.12
5.6.130.0100.08018.18
5.6.120.0030.06021.00
5.6.110.0070.07721.12
5.6.100.0070.07021.13
5.6.90.0070.07021.00
5.6.80.0030.08320.35
5.6.70.4370.04320.50
5.5.350.0100.08720.47
5.5.340.0070.06717.97
5.5.330.0270.06320.23
5.5.320.0270.07020.27
5.5.310.0330.08320.24
5.5.300.0070.03717.93
5.5.290.0170.05317.93
5.5.280.0030.06020.64
5.5.270.0070.09020.93
5.5.260.0070.08320.98
5.5.250.0070.08320.78
5.5.240.0000.07720.07
5.4.450.0800.07019.20
5.4.440.0870.05019.18
5.4.430.0530.05719.16
5.4.420.0730.07719.55
5.4.410.0900.07019.47
5.4.400.0300.06318.82
5.4.390.0500.05018.83
5.4.380.0470.07018.73
5.4.370.0130.05318.76
5.4.360.0200.04718.71
5.4.350.0170.05718.70
5.4.340.0100.05318.46
5.4.320.0060.03612.50
5.4.310.0050.04112.50
5.4.300.0030.04012.50
5.4.290.0070.05312.50
5.4.280.0100.04712.39
5.4.270.0070.03712.39
5.4.260.0100.05718.64
5.4.250.0100.07018.93
5.4.240.0100.05318.64
5.4.230.0130.06718.87
5.4.220.0100.05319.06
5.4.210.0070.05718.88
5.4.200.0030.07018.87
5.4.190.0100.08018.88
5.4.180.0130.04318.64
5.4.170.0070.05719.06
5.4.160.0070.05318.91
5.4.150.0100.07318.91
5.4.140.0030.05316.39
5.4.130.0100.07316.56
5.4.120.0100.06016.46
5.4.110.0130.06716.46
5.4.100.0070.07316.38
5.4.90.0130.07016.36
5.4.80.0100.05016.38
5.4.70.0170.06316.26
5.4.60.0100.07716.54
5.4.50.0130.07016.45
5.4.40.0100.04316.45
5.4.30.0100.05316.50
5.4.20.0030.06716.53
5.4.10.0170.05716.31
5.4.00.0030.05315.85
5.3.290.0070.04612.80
5.3.280.0000.05714.68
5.3.270.0130.06314.46
5.3.260.0100.07314.67
5.3.250.0100.05314.83
5.3.240.0000.05714.78
5.3.230.0070.06714.50
5.3.220.0070.07714.79
5.3.210.0130.04714.57
5.3.200.0100.05314.57
5.3.190.0070.07714.55
5.3.180.0030.05314.55
5.3.170.0100.04714.58
5.3.160.0030.05314.53
5.3.150.0030.05714.78
5.3.140.0130.05014.56
5.3.130.0070.05714.57
5.3.120.0130.04714.62
5.3.110.0070.05314.68
5.3.100.0170.04714.17
5.3.90.0100.04714.02
5.3.80.0200.04714.02
5.3.70.0100.05314.02
5.3.60.0170.04014.09
5.3.50.0100.04713.96
5.3.40.0130.06713.97
5.3.30.0100.07313.90
5.3.20.0100.06713.77
5.3.10.0070.05013.87
5.3.00.0100.04713.80
5.2.170.0030.06011.12
5.2.160.0130.03310.98
5.2.150.0100.04011.12
5.2.140.0070.04011.23
5.2.130.0130.03311.01
5.2.120.0070.04011.19
5.2.110.0000.04711.33
5.2.100.0100.05011.28
5.2.90.0130.03311.07
5.2.80.0070.06011.17
5.2.70.0070.04011.18
5.2.60.0030.04311.27
5.2.50.0030.04310.85
5.2.40.0200.03710.91
5.2.30.0200.04710.88
5.2.20.0070.04010.79
5.2.10.0100.04710.76
5.2.00.0070.04010.55
5.1.60.0000.0409.92
5.1.50.0100.03010.07
5.1.40.0030.0339.98
5.1.30.0070.03310.16
5.1.20.0030.03710.32
5.1.10.0100.03010.13
5.1.00.0030.03710.01
5.0.50.0000.0378.40
5.0.40.0000.0308.26
5.0.30.0030.0438.28
5.0.20.0000.0308.26
5.0.10.0130.0178.23
5.0.00.0030.0438.40
4.4.90.0000.0307.26
4.4.80.0070.0207.26
4.4.70.0030.0277.26
4.4.60.0130.0177.26
4.4.50.0100.0207.26
4.4.40.0000.0377.26
4.4.30.0070.0237.26
4.4.20.0030.0207.26
4.4.10.0070.0277.26
4.4.00.0030.0337.26
4.3.110.0030.0307.26
4.3.100.0000.0237.26
4.3.90.0030.0277.26
4.3.80.0000.0437.26
4.3.70.0030.0207.26
4.3.60.0000.0207.26
4.3.50.0030.0337.26
4.3.40.0070.0277.26
4.3.30.0030.0207.26
4.3.20.0000.0307.26
4.3.10.0100.0137.26
4.3.00.0100.0236.77

preferences:
40.85 ms | 401 KiB | 5 Q