3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __get($var_name) { return str_replace('_', ' ', $var_name); } } $foo = new Foo(); if (empty($foo->haunting_ghost)) { // language construct echo $foo->haunting_ghost; }

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.0110.00718.43
8.3.50.0090.00916.24
8.3.40.0110.00718.76
8.3.30.0150.00018.67
8.3.20.0050.00219.10
8.3.10.0000.00819.10
8.3.00.0050.00217.80
8.2.180.0100.00618.66
8.2.170.0040.01622.96
8.2.160.0090.00919.04
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.66
8.2.120.0000.00726.35
8.2.110.0030.00622.27
8.2.100.0120.00019.51
8.2.90.0090.00017.75
8.2.80.0050.00318.78
8.2.70.0040.00417.93
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0040.00421.02
8.2.30.0000.00719.33
8.2.20.0040.00418.12
8.2.10.0000.00817.87
8.2.00.0070.00019.34
8.1.280.0130.00325.92
8.1.270.0000.00923.63
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0070.00419.09
8.1.220.0040.00418.71
8.1.210.0060.00318.77
8.1.200.0000.00817.13
8.1.190.0080.00017.36
8.1.180.0090.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.73
8.1.150.0080.00018.83
8.1.140.0040.00417.55
8.1.130.0040.00418.96
8.1.120.0070.00017.29
8.1.110.0030.00317.38
8.1.100.0000.01017.22
8.1.90.0050.00517.34
8.1.80.0030.00617.45
8.1.70.0000.00717.44
8.1.60.0090.00017.61
8.1.50.0040.00417.41
8.1.40.0000.00817.54
8.1.30.0000.00917.72
8.1.20.0040.00417.55
8.1.10.0030.00617.60
8.1.00.0060.00317.47
8.0.300.0050.00318.77
8.0.290.0060.00316.63
8.0.280.0050.00318.32
8.0.270.0030.00317.19
8.0.260.0040.00419.07
8.0.250.0000.00716.93
8.0.240.0080.00016.92
8.0.230.0040.00416.87
8.0.220.0040.00416.85
8.0.210.0030.00316.76
8.0.200.0070.00016.75
8.0.190.0040.00416.97
8.0.180.0050.00316.80
8.0.170.0080.00016.85
8.0.160.0000.00816.75
8.0.150.0000.00716.74
8.0.140.0030.00316.79
8.0.130.0030.00313.30
8.0.120.0050.00316.83
8.0.110.0030.00616.85
8.0.100.0050.00216.80
8.0.90.0080.00016.78
8.0.80.0070.01016.85
8.0.70.0000.00716.63
8.0.60.0040.00416.61
8.0.50.0040.00416.95
8.0.30.0100.00817.06
8.0.20.0110.00917.40
8.0.10.0070.00016.94
8.0.00.0110.00716.80
7.4.330.0030.00315.55
7.4.320.0000.00616.54
7.4.300.0000.00616.49
7.4.290.0000.00716.50
7.4.280.0040.00416.53
7.4.270.0000.00716.65
7.4.260.0050.00316.49
7.4.250.0080.00016.37
7.4.240.0000.00716.63
7.4.230.0030.00316.70
7.4.220.0040.00416.68
7.4.210.0100.00316.55
7.4.200.0070.00016.52
7.4.160.0060.01016.35
7.4.140.0100.01017.86
7.4.130.0090.01016.32
7.4.120.0090.00916.46
7.4.110.0130.01016.51
7.4.100.0120.00616.66
7.4.90.0110.00716.43
7.4.80.0150.00319.39
7.4.70.0070.01016.66
7.4.60.0090.01216.29
7.4.50.0090.00616.32
7.4.40.0170.00716.44
7.4.10.0070.01015.17
7.4.00.0040.01114.92
7.3.330.0000.00613.25
7.3.320.0060.00013.02
7.3.310.0000.00716.34
7.3.300.0000.00716.12
7.3.290.0030.00316.29
7.3.280.0120.00316.23
7.3.260.0090.01416.31
7.3.240.0080.01016.26
7.3.230.0150.00316.32
7.3.210.0120.00616.29
7.3.200.0070.01116.55
7.3.190.0070.01016.51
7.3.180.0070.01016.27
7.3.170.0060.01016.23
7.3.160.0130.00916.16
7.3.130.0080.00814.79
7.3.120.0040.00814.90
7.3.110.0070.01314.77
7.3.100.0000.01514.60
7.3.90.0000.01414.61
7.3.80.0100.00014.64
7.3.70.0040.01114.80
7.3.60.0030.00914.77
7.3.50.0030.00614.73
7.3.40.0070.00714.76
7.3.30.0040.00814.57
7.3.20.0030.00916.57
7.3.10.0080.00716.56
7.3.00.0050.00616.45
7.2.330.0120.01216.62
7.2.320.0070.01016.69
7.2.310.0120.00616.73
7.2.300.0070.01016.60
7.2.290.0060.01216.53
7.2.260.0100.00714.75
7.2.250.0120.00815.14
7.2.240.0000.01415.18
7.2.230.0000.01415.04
7.2.220.0070.00414.88
7.2.210.0060.00914.58
7.2.200.0000.01514.89
7.2.190.0100.00615.07
7.2.180.0080.00615.19
7.2.170.0040.00715.01
7.2.160.0060.01014.68
7.2.150.0030.01416.76
7.2.140.0030.00916.80
7.2.130.0030.01116.72
7.2.120.0020.01116.85
7.2.110.0050.00816.74
7.2.100.0070.00516.69
7.2.90.0040.01016.81
7.2.80.0030.00816.79
7.2.70.0060.00716.64
7.2.60.0960.00616.30
7.2.50.0940.00816.30
7.2.40.0890.00916.54
7.2.30.1180.00816.49
7.2.20.0970.00816.50
7.2.10.1210.01016.44
7.2.00.1180.00716.29
7.1.330.0030.01015.89
7.1.320.0060.00615.68
7.1.310.0080.00815.79
7.1.300.0040.00915.89
7.1.290.0030.01015.66
7.1.280.0100.00315.71
7.1.270.0040.00415.71
7.1.260.0100.00315.47
7.1.250.0060.00615.71
7.1.240.0060.00515.67
7.1.230.0030.00815.72
7.1.220.0070.00815.77
7.1.210.0100.00315.75
7.1.200.0080.00215.78
7.1.190.0060.00615.66
7.1.180.0060.00615.86
7.1.170.1280.00915.08
7.1.160.1300.00616.05
7.1.150.1500.00716.05
7.1.140.1500.00616.20
7.1.130.1410.00915.94
7.1.120.0100.00916.11
7.1.110.0260.00815.98
7.1.100.1010.00815.80
7.1.90.0330.00915.90
7.1.80.0100.00715.91
7.1.70.1730.01015.55
7.1.60.0170.01121.39
7.1.50.0200.01121.51
7.1.40.0140.00921.34
7.1.30.1840.00821.34
7.1.20.1630.01421.42
7.1.10.1170.00715.36
7.1.00.0070.01115.49
7.0.330.0050.00515.35
7.0.320.0000.01115.25
7.0.310.0030.00815.42
7.0.300.0000.01215.31
7.0.290.0000.01015.29
7.0.280.0040.00815.11
7.0.270.0000.01115.39
7.0.260.0090.00314.99
7.0.250.0060.00615.43
7.0.240.0060.00615.45
7.0.230.0070.01015.46
7.0.220.0070.00715.32
7.0.210.0070.00715.39
7.0.200.0000.01715.50
7.0.190.0000.01515.43
7.0.180.0030.01315.02
7.0.170.0030.01015.49
7.0.160.0060.00615.39
7.0.150.0090.00615.08
7.0.140.0030.00615.20
7.0.130.0080.00415.25
7.0.120.0000.01215.32
7.0.110.0030.01015.48
7.0.100.0040.00815.37
7.0.90.0070.00715.21
7.0.80.0110.00415.49
7.0.70.0060.00815.21
7.0.60.0030.01015.15
7.0.50.0070.00315.40
7.0.40.0040.00813.57
7.0.30.0070.00413.50
7.0.20.0090.00013.18
7.0.10.0100.00313.43
7.0.00.0000.01013.28
5.6.400.0070.00313.89
5.6.390.0030.01014.52
5.6.380.0030.00714.37
5.6.370.0070.00714.40
5.6.360.0030.00514.02
5.6.350.0090.00314.45
5.6.340.0130.00014.31
5.6.330.0040.00714.57
5.6.320.0090.00914.38
5.6.310.0070.00714.16
5.6.300.0000.01214.37
5.6.290.0070.00414.62
5.6.280.0060.00314.27
5.6.270.0030.00614.23
5.6.260.0080.00514.38
5.6.250.0060.00314.31
5.6.240.0060.01014.42
5.6.230.0110.00314.14
5.6.220.0040.00414.33
5.6.210.0040.01114.51
5.6.200.0000.00914.11
5.6.190.0040.01114.40
5.6.180.0030.01214.02
5.6.170.0060.00614.63
5.6.160.0040.00714.23
5.6.150.0070.00714.07
5.6.140.0000.00814.32
5.6.130.0060.00614.22
5.6.120.0100.00614.25
5.6.110.0080.00414.42
5.6.100.0000.01314.39
5.6.90.0070.00314.25
5.6.80.0080.00014.29
5.6.70.0030.01014.28
5.6.60.0100.00014.17
5.6.50.0030.00714.05
5.6.40.0000.01114.08
5.6.30.0040.00814.47
5.6.20.0070.00714.14
5.6.10.0030.00914.42
5.6.00.0030.00814.50

preferences:
59.63 ms | 401 KiB | 5 Q