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; print "print_{self::$static_prop}"; } function printObjectProp() { print "print_{$this->prop}"; } } $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.0070.01318.55
8.3.50.0140.00322.11
8.3.40.0070.00718.66
8.3.30.0080.00818.85
8.3.20.0040.00418.60
8.3.10.0050.00321.00
8.3.00.0040.00421.95
8.2.180.0140.00716.75
8.2.170.0100.00722.96
8.2.160.0100.00721.06
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0100.00019.15
8.2.110.0070.00321.08
8.2.100.0070.00417.91
8.2.90.0040.00417.75
8.2.80.0000.00818.92
8.2.70.0040.00417.63
8.2.60.0030.00617.63
8.2.50.0040.00417.93
8.2.40.0040.00419.48
8.2.30.0020.00521.10
8.2.20.0000.00717.77
8.2.10.0040.00417.68
8.2.00.0060.00317.70
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00621.06
8.1.230.0060.00622.73
8.1.220.0030.00618.55
8.1.210.0040.00418.77
8.1.200.0090.00017.61
8.1.190.0000.00917.35
8.1.180.0030.00518.10
8.1.170.0000.00817.62
8.1.160.0070.00018.74
8.1.150.0000.00718.64
8.1.140.0080.00017.44
8.1.130.0070.00017.83
8.1.120.0000.00917.43
8.1.110.0050.00217.36
8.1.100.0050.00317.35
8.1.90.0060.00317.45
8.1.80.0030.00317.44
8.1.70.0070.00017.36
8.1.60.0030.00617.59
8.1.50.0050.00217.54
8.1.40.0040.00417.43
8.1.30.0030.00517.66
8.1.20.0000.00917.65
8.1.10.0040.00417.47
8.1.00.0070.00417.40
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0030.00317.19
8.0.260.0060.00317.01
8.0.250.0070.00016.99
8.0.240.0060.00316.86
8.0.230.0040.00416.98
8.0.220.0000.00716.94
8.0.210.0030.00317.00
8.0.200.0030.00317.00
8.0.190.0000.00816.91
8.0.180.0040.00416.89
8.0.170.0050.00217.04
8.0.160.0040.00416.92
8.0.150.0030.00516.93
8.0.140.0000.00816.95
8.0.130.0000.00513.32
8.0.120.0080.00016.94
8.0.110.0040.00416.90
8.0.100.0000.00716.82
8.0.90.0070.00016.99
8.0.80.0090.00617.00
8.0.70.0000.00716.91
8.0.60.0000.00817.00
8.0.50.0000.00816.94
8.0.30.0140.00917.22
8.0.20.0100.00817.40
8.0.10.0040.00416.84
8.0.00.0100.00816.82
7.4.330.0050.00016.76
7.4.320.0070.00316.55
7.4.300.0000.00816.52
7.4.290.0030.00316.59
7.4.280.0030.00316.58
7.4.270.0080.00016.52
7.4.260.0000.00513.28
7.4.250.0060.00316.39
7.4.240.0080.00016.65
7.4.230.0070.00016.49
7.4.220.0090.00916.55
7.4.210.0090.00616.57
7.4.200.0000.00716.40
7.4.190.0040.00416.67
7.4.160.0080.00816.48
7.4.150.0150.00717.40
7.4.140.0140.00717.86
7.4.130.0130.00816.46
7.4.120.0120.00516.51
7.4.110.0180.00316.57
7.4.100.0090.00916.63
7.4.90.0050.01516.79
7.4.80.0120.01119.39
7.4.70.0080.00816.57
7.4.60.0100.00716.52
7.4.50.0060.00316.44
7.4.40.0040.01022.77
7.4.30.0100.01016.52
7.4.00.0130.00314.86
7.3.330.0000.00513.38
7.3.320.0060.00013.25
7.3.310.0070.00016.30
7.3.300.0000.00716.43
7.3.290.0070.01316.48
7.3.280.0090.01116.39
7.3.270.0030.01317.40
7.3.260.0080.01018.24
7.3.250.0040.01416.58
7.3.240.0140.00416.57
7.3.230.0100.01416.39
7.3.210.0090.01016.39
7.3.200.0040.01419.39
7.3.190.0090.01416.41
7.3.180.0030.01216.45
7.3.170.0080.00816.58
7.3.160.0100.00616.49
7.3.120.0040.00915.02
7.2.330.0120.00916.70
7.2.320.0120.00616.48
7.2.310.0160.00716.67
7.2.300.0060.01116.65
7.2.290.0060.00916.35
7.2.60.0040.01116.82
7.2.00.0030.01019.34
7.1.200.0060.00615.59
7.1.100.0220.01316.23
7.1.70.0080.00617.07
7.1.60.0030.01317.16
7.1.50.0000.01616.85
7.1.40.0000.01116.57
7.1.30.0040.01916.73
7.1.20.0030.01716.58
7.1.10.0030.01016.49
7.1.00.0060.00916.69
7.0.200.0000.00716.69
7.0.190.0030.01216.65
7.0.180.0000.01416.07
7.0.170.0070.01016.32
7.0.160.0030.00916.24
7.0.150.0070.01016.22
7.0.140.0030.01316.39
7.0.130.0060.01316.47
7.0.120.0030.01016.68
7.0.110.0000.00816.25
7.0.100.0000.00816.11
7.0.90.0000.00816.34
7.0.80.0030.00516.51
7.0.70.0040.00416.40
7.0.60.0040.00416.22
7.0.50.0000.00716.51
7.0.40.0030.01315.10
7.0.30.0000.00715.10
7.0.20.0000.00915.10
7.0.10.0030.00615.10
7.0.00.0100.00615.10
5.6.300.0030.06120.77
5.6.290.0070.07820.99
5.6.280.0000.05821.08
5.6.270.0030.04820.77
5.6.260.0100.03520.85
5.6.250.0070.04120.88
5.6.240.0060.04120.92
5.6.230.0070.04520.92
5.6.220.0070.04020.91
5.6.210.0030.05721.09
5.6.200.0130.03220.94
5.6.190.0060.04520.82
5.6.180.0060.03920.78
5.6.170.0100.07220.92
5.6.160.0000.08420.79
5.6.150.0100.03420.77
5.6.140.0030.08620.75
5.6.130.0130.03320.71
5.6.120.0070.05620.95
5.6.110.0100.05120.78
5.6.100.0000.05420.80
5.6.90.0070.07920.67
5.6.80.0070.04320.16
5.6.70.0000.05320.41
5.6.60.0000.04620.15
5.6.50.0030.06720.41
5.6.40.0100.03820.30
5.6.30.0070.04020.32
5.6.20.0000.04520.31
5.6.10.0000.04320.19
5.6.00.0030.04220.27
5.5.380.0030.04017.57
5.5.370.0000.04717.55
5.5.360.0100.03317.39
5.5.350.0070.03917.63
5.5.340.0030.03918.09
5.5.330.0030.03817.98
5.5.320.0030.03918.10
5.5.310.0030.06117.66
5.5.300.0030.04818.09
5.5.290.0000.04418.09
5.5.280.0030.04418.07
5.5.270.0030.05117.80
5.5.260.0000.07718.05
5.5.250.0000.04717.79
5.5.240.0070.07617.40
5.5.230.0070.03617.39
5.5.220.0000.08017.32
5.5.210.0030.07417.20
5.5.200.0030.03717.18
5.5.190.0070.03617.01
5.5.180.0000.04217.34
5.5.160.0070.05317.42
5.5.150.0000.04317.33
5.5.140.0100.03217.32
5.5.130.0070.03417.32
5.5.120.0160.03816.99
5.5.110.0030.03617.43
5.5.100.0030.03717.20
5.5.90.0030.03817.29
5.5.80.0100.03917.32
5.5.70.0000.04617.37
5.5.60.0030.04317.05
5.5.50.0070.04017.32
5.5.40.0000.04117.22
5.5.30.0000.06817.20
5.5.20.0000.04717.32
5.5.10.0030.04017.30
5.5.00.0060.03517.15
5.4.450.0030.05419.47
5.4.440.0070.07719.41
5.4.430.0030.05119.47
5.4.420.0070.07619.23
5.4.410.0130.04619.30
5.4.400.0070.07218.90
5.4.390.0100.03218.93
5.4.380.0100.03319.13
5.4.370.0000.07319.01
5.4.360.0030.03819.15
5.4.350.0030.04018.92
5.4.340.0000.04219.05
5.4.320.0070.03619.11
5.4.310.0030.03819.13
5.4.300.0000.04019.00
5.4.290.0030.03818.92
5.4.280.0030.04518.94
5.4.270.0070.03319.21
5.4.260.0030.03719.00
5.4.250.0030.05018.84
5.4.240.0100.04819.01
5.4.230.0030.03718.84
5.4.220.0000.04219.20
5.4.210.0060.03219.21
5.4.200.0030.07719.05
5.4.190.0030.07019.20
5.4.180.0070.08919.12
5.4.170.0030.03819.11
5.4.160.0030.03718.91
5.4.150.0030.03718.98
5.4.140.0000.03916.66
5.4.130.0000.04216.56
5.4.120.0000.03716.43
5.4.110.0000.03816.45
5.4.100.0070.03116.74
5.4.90.0030.03516.46
5.4.80.0000.03916.47
5.4.70.0070.03316.73
5.4.60.0060.03216.58
5.4.50.0060.03516.48
5.4.40.0030.03716.63
5.4.30.0090.02816.45
5.4.20.0070.03016.66
5.4.10.0000.04416.46
5.4.00.0000.03716.20
5.3.290.0030.04215.10
5.3.280.0070.05015.10
5.3.270.0000.04515.10
5.3.260.0030.04215.10
5.3.250.0000.06315.10
5.3.240.0100.03615.10
5.3.230.0060.03815.10
5.3.220.0030.04515.10
5.3.210.0030.03715.10
5.3.200.0030.03715.10
5.3.190.0040.03515.10
5.3.180.0000.04015.10
5.3.170.0000.04515.10
5.3.160.0070.03415.10
5.3.150.0070.03715.10
5.3.140.0000.04015.10
5.3.130.0030.03715.10
5.3.120.0070.03315.10
5.3.110.0030.03915.10
5.3.100.0000.04115.10
5.3.90.0030.03515.10
5.3.80.0070.03315.10
5.3.70.0030.03415.10
5.3.60.0030.03315.10
5.3.50.0060.03215.10
5.3.40.0030.03415.10
5.3.30.0000.03815.10
5.3.20.0030.03315.10
5.3.10.0000.03515.10
5.3.00.0030.03515.10

preferences:
48.43 ms | 401 KiB | 5 Q