3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $static_prop = 'class prop'; public $prop = 'object prop'; static function printClassProp() { print 'print_' . self::$static_prop . PHP_EOL; print "print_{self::$static_prop}" . PHP_EOL; } function printObjectProp() { print "print_{$this->prop}" . PHP_EOL; } } $foo = new Foo; $foo->printObjectProp(); Foo::printClassProp();

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.39
8.3.50.0100.00721.92
8.3.40.0090.00618.59
8.3.30.0090.00618.89
8.3.20.0050.00318.78
8.3.10.0080.00020.39
8.3.00.0070.00023.48
8.2.180.0180.00316.75
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.48
8.2.110.0030.00621.04
8.2.100.0060.00617.83
8.2.90.0000.00919.34
8.2.80.0000.00817.93
8.2.70.0030.00617.63
8.2.60.0040.00417.89
8.2.50.0040.00418.07
8.2.40.0050.00317.97
8.2.30.0030.00519.86
8.2.20.0000.00817.72
8.2.10.0000.00717.71
8.2.00.0040.00417.84
8.1.280.0070.01025.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00320.60
8.1.230.0040.00720.88
8.1.220.0040.00417.79
8.1.210.0070.00318.84
8.1.200.0040.00417.48
8.1.190.0000.00817.53
8.1.180.0040.00419.01
8.1.170.0040.00418.89
8.1.160.0040.00418.88
8.1.150.0000.00718.63
8.1.140.0020.00517.45
8.1.130.0070.00017.82
8.1.120.0040.00417.50
8.1.110.0080.00017.34
8.1.100.0040.00417.39
8.1.90.0070.00017.36
8.1.80.0040.00417.52
8.1.70.0030.00317.34
8.1.60.0040.00417.63
8.1.50.0080.00017.43
8.1.40.0000.00917.51
8.1.30.0000.00817.58
8.1.20.0030.00517.57
8.1.10.0040.00417.58
8.1.00.0000.00717.50
8.0.300.0040.00420.02
8.0.290.0040.00416.58
8.0.280.0040.00418.38
8.0.270.0070.00017.16
8.0.260.0000.00616.78
8.0.250.0040.00417.02
8.0.240.0040.00817.05
8.0.230.0040.00416.90
8.0.220.0030.00316.95
8.0.210.0000.00716.96
8.0.200.0000.00616.95
8.0.190.0050.00316.93
8.0.180.0080.00016.90
8.0.170.0060.00316.96
8.0.160.0040.00416.95
8.0.150.0040.00416.85
8.0.140.0080.00016.90
8.0.130.0030.00313.34
8.0.120.0040.00416.96
8.0.110.0070.00016.98
8.0.100.0000.00816.95
8.0.90.0000.00716.89
8.0.80.0030.01016.92
8.0.70.0040.00416.99
8.0.60.0040.00416.81
8.0.50.0070.00016.79
8.0.30.0100.01217.00
8.0.20.0100.01117.40
8.0.10.0030.00516.89
8.0.00.0080.01016.96
7.4.330.0000.00713.43
7.4.320.0030.00316.35
7.4.300.0030.00316.43
7.4.290.0070.00016.68
7.4.280.0040.00416.62
7.4.270.0060.00016.50
7.4.260.0000.00513.21
7.4.250.0050.00516.63
7.4.240.0000.01016.64
7.4.230.0070.00016.38
7.4.220.0030.01616.50
7.4.210.0110.00816.58
7.4.200.0030.00316.40
7.4.190.0070.00016.62
7.4.160.0060.01016.68
7.4.150.0170.00717.40
7.4.140.0070.01017.86
7.4.130.0100.00816.64
7.4.120.0060.01116.34
7.4.110.0090.00916.59
7.4.100.0110.01116.35
7.4.90.0200.00516.59
7.4.80.0100.00719.04
7.4.70.0130.00416.59
7.4.60.0120.00616.37
7.4.50.0000.00916.44
7.4.40.0070.00722.27
7.4.30.0180.00316.70
7.4.00.0120.00314.93
7.3.330.0000.00513.43
7.3.320.0030.00313.25
7.3.310.0030.00416.40
7.3.300.0030.00316.34
7.3.290.0000.01516.33
7.3.280.0100.00716.42
7.3.270.0100.01017.40
7.3.260.0080.01118.24
7.3.250.0080.01116.34
7.3.240.0080.00816.63
7.3.230.0120.00916.52
7.3.210.0050.01116.65
7.3.200.0070.01019.39
7.3.190.0100.00716.56
7.3.180.0080.00816.41
7.3.170.0090.00616.27
7.3.160.0120.00316.64
7.3.120.0070.01014.85
7.2.330.0090.01616.78
7.2.320.0060.01316.83
7.2.310.0050.01416.41
7.2.300.0060.00916.79
7.2.290.0080.01016.45
7.2.00.0060.00619.27
7.1.100.0090.00317.92
7.1.70.0030.00917.10
7.1.60.0070.01719.40
7.1.50.0080.01516.77
7.1.00.0000.06322.41
7.0.200.0050.00216.73
7.0.140.0100.06721.97
7.0.60.0170.07320.10
7.0.50.0030.04717.89
7.0.40.0200.06717.73
7.0.30.0130.07017.75
7.0.20.0070.08317.72
7.0.10.0200.07017.86
7.0.00.0030.07717.80
5.6.280.0070.07021.13
5.6.210.0030.06020.52
5.6.200.0070.03718.15
5.6.190.0070.08018.12
5.6.180.0030.04318.14
5.6.170.0070.08318.18
5.6.160.0030.08318.22
5.6.150.0130.07318.29
5.6.140.0100.04718.19
5.6.130.0070.04318.27
5.6.120.0100.08318.15
5.6.110.0170.07318.15
5.6.100.0070.08318.14
5.6.90.0070.04718.19
5.6.80.0070.08017.55
5.6.70.0100.04717.53
5.6.60.0170.04017.60
5.6.50.0030.04017.58
5.6.40.0100.07017.54
5.6.30.0030.08017.57
5.6.20.0070.03717.51
5.6.10.0000.04317.49
5.6.00.0030.05717.56
5.5.350.4470.04020.36
5.5.340.0070.03318.07
5.5.330.0070.08018.07
5.5.320.0170.06017.98
5.5.310.0070.04317.97
5.5.300.0070.05717.99
5.5.290.0070.07718.00
5.5.280.0100.08018.08
5.5.270.0030.08718.07
5.5.260.0100.05317.98
5.5.250.0170.06317.73
5.5.240.0170.04317.40
5.5.230.0000.07017.30
5.5.220.0000.04717.46
5.5.210.0100.06017.33
5.5.200.0000.05017.37
5.5.190.0070.03717.27
5.5.180.0100.07717.34
5.5.160.0100.07317.31
5.5.150.0170.06717.29
5.5.140.0030.05317.43
5.5.130.0070.05017.29
5.5.120.0100.07317.29
5.5.110.0100.06717.33
5.5.100.0030.07317.21
5.5.90.0170.04717.20
5.5.80.0030.06717.33
5.5.70.0130.07017.18
5.5.60.0130.07317.23
5.5.50.0100.07017.19
5.5.40.0030.07017.27
5.5.30.0170.07017.22
5.5.20.0000.06017.32
5.5.10.0030.08317.21
5.5.00.0070.07017.31
5.4.450.0070.08019.60
5.4.440.0100.07719.28
5.4.430.0030.07019.36
5.4.420.0030.05319.35
5.4.410.0100.08019.18
5.4.400.0100.05318.95
5.4.390.0100.06319.03
5.4.380.0070.06319.10
5.4.370.0070.03719.26
5.4.360.0100.07019.03
5.4.350.0030.04719.10
5.4.340.0030.04319.13
5.4.320.0030.06019.02
5.4.310.0030.04019.10
5.4.300.0070.04719.10
5.4.290.0130.03318.99
5.4.280.0030.04018.98
5.4.270.0200.06718.95
5.4.260.0130.05019.26
5.4.250.0100.06019.04
5.4.240.0200.03319.04
5.4.230.0130.04319.00
5.4.220.0100.07319.11
5.4.210.0000.08719.09
5.4.200.0070.07319.26
5.4.190.0030.07719.03
5.4.180.0070.07319.20
5.4.170.0070.07718.88
5.4.160.0100.06719.03
5.4.150.0100.07719.01
5.4.140.0100.07016.39
5.4.130.0030.07716.39
5.4.120.0070.07016.57
5.4.110.0100.06716.29
5.4.100.0100.07016.23
5.4.90.0070.05316.38
5.4.80.0000.04016.46
5.4.70.0030.06016.45
5.4.60.0030.07716.27
5.4.50.0030.07316.55
5.4.40.0170.06716.43
5.4.30.0070.07016.43
5.4.20.0100.06316.40
5.4.10.0170.06016.42
5.4.00.0030.07715.84
5.3.290.0000.04314.66
5.3.280.0130.06714.60
5.3.270.0030.07314.64
5.3.260.0130.07314.67
5.3.250.0070.07314.63
5.3.240.0030.07014.82
5.3.230.0030.07714.64
5.3.220.0230.06714.54
5.3.210.0100.07714.60
5.3.200.0030.08014.79
5.3.190.0100.07714.56
5.3.180.0070.03714.57
5.3.170.0070.06014.64
5.3.160.0100.05314.59
5.3.150.0100.07314.64
5.3.140.0100.06014.57
5.3.130.0130.07014.56
5.3.120.0030.06714.63
5.3.110.0030.06014.56
5.3.100.0100.06314.06
5.3.90.0000.04314.06
5.3.80.0030.07314.04
5.3.70.0070.04014.06
5.3.60.0030.08014.00
5.3.50.0130.06713.99
5.3.40.0100.06713.99
5.3.30.0130.05713.97
5.3.20.0070.04313.75
5.3.10.0030.03713.65
5.3.00.0000.08013.66
5.2.170.0130.03311.16
5.2.160.0070.06311.25
5.2.150.0100.06011.12
5.2.140.0030.04311.18
5.2.130.0030.03010.92
5.2.120.0000.04011.16
5.2.110.0070.06011.16
5.2.100.0100.06011.14
5.2.90.0000.03310.99
5.2.80.0100.03011.14
5.2.70.0100.02311.15
5.2.60.0030.03010.87
5.2.50.0100.05010.94
5.2.40.0000.06011.05
5.2.30.0000.04310.98
5.2.20.0130.05310.91
5.2.10.0030.06010.90
5.2.00.0170.05010.72
5.1.60.0130.04710.10
5.1.50.0070.0579.95
5.1.40.0030.03010.05
5.1.30.0030.04010.38
5.1.20.0070.05310.41
5.1.10.0100.05310.10
5.1.00.0070.05310.04
5.0.50.0000.0508.63
5.0.40.0000.0278.35
5.0.30.0000.0508.30
5.0.20.0030.0478.27
5.0.10.0030.0438.21
5.0.00.0070.0608.23
4.4.90.0000.0177.59
4.4.80.0000.0177.59
4.4.70.0070.0307.59
4.4.60.0000.0207.59
4.4.50.0070.0237.59
4.4.40.0030.0537.59
4.4.30.0000.0277.59
4.4.20.0000.0377.59
4.4.10.0030.0307.59
4.4.00.0030.0407.59
4.3.110.0070.0237.59
4.3.100.0100.0137.59
4.3.90.0030.0377.59
4.3.80.0000.0537.59
4.3.70.0000.0277.59
4.3.60.0100.0177.59
4.3.50.0000.0237.59
4.3.40.0030.0277.59
4.3.30.0000.0337.59
4.3.20.0030.0177.59
4.3.10.0030.0237.59
4.3.00.0000.0277.59

preferences:
42.08 ms | 401 KiB | 5 Q