3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { print get_called_class(); $foo = static function() { return get_called_class(); }; return $foo(); } } class Bar extends Foo { function Zbar() { $foo = static function() { return get_called_class(); }; return $foo(); } } print Bar::bar(); //assert(Bar::bar() === 'Bar'); //assert(Bar::baz() === 'Bar');

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.0100.01016.63
8.3.50.0160.00618.09
8.3.40.0100.01018.89
8.3.30.0100.00319.05
8.3.20.0000.00820.21
8.3.10.0050.00323.34
8.3.00.0100.00017.63
8.2.180.0070.01418.12
8.2.170.0090.00622.96
8.2.160.0070.00720.44
8.2.150.0000.00724.18
8.2.140.0090.00524.66
8.2.130.0030.01026.16
8.2.120.0040.00422.28
8.2.110.0140.00722.26
8.2.100.0040.00817.72
8.2.90.0040.00419.16
8.2.80.0000.00817.97
8.2.70.0040.00717.50
8.2.60.0030.00617.91
8.2.50.0000.00818.07
8.2.40.0050.00318.03
8.2.30.0000.00718.10
8.2.20.0040.00417.61
8.2.10.0070.00018.03
8.2.00.0040.00417.73
8.1.280.0150.00425.92
8.1.270.0040.00422.05
8.1.260.0120.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00423.87
8.1.230.0000.01218.96
8.1.220.0000.00817.74
8.1.210.0100.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.40
8.1.180.0070.00018.10
8.1.170.0030.00718.51
8.1.160.0040.00421.93
8.1.150.0080.00018.50
8.1.140.0000.00717.27
8.1.130.0030.00317.71
8.1.120.0000.00717.36
8.1.110.0030.00317.35
8.1.100.0030.00517.32
8.1.90.0040.00417.21
8.1.80.0000.00717.21
8.1.70.0030.00317.29
8.1.60.0030.00617.54
8.1.50.0040.00417.45
8.1.40.0080.00017.41
8.1.30.0040.00417.59
8.1.20.0030.00617.50
8.1.10.0050.00317.36
8.1.00.0070.00017.32
8.0.300.0000.00719.21
8.0.290.0070.00017.18
8.0.280.0000.00718.37
8.0.270.0000.00717.10
8.0.260.0000.00717.10
8.0.250.0050.00316.96
8.0.240.0080.00016.92
8.0.230.0000.00716.99
8.0.220.0040.00416.78
8.0.210.0070.00016.86
8.0.200.0030.00816.95
8.0.190.0080.00016.86
8.0.180.0000.00716.89
8.0.170.0000.00816.80
8.0.160.0070.00016.81
8.0.150.0040.00416.91
8.0.140.0040.00416.84
8.0.130.0000.00613.27
8.0.120.0050.00216.84
8.0.110.0000.00716.89
8.0.100.0030.00616.70
8.0.90.0030.00516.84
8.0.80.0100.01016.81
8.0.70.0040.00416.71
8.0.60.0050.00216.69
8.0.50.0000.00716.92
8.0.30.0090.00917.08
8.0.20.0060.01317.40
8.0.10.0070.00016.98
8.0.00.0150.00416.70
7.4.330.0060.00015.00
7.4.320.0070.00016.42
7.4.300.0060.00016.56
7.4.290.0030.00316.52
7.4.280.0070.00016.59
7.4.270.0050.00216.54
7.4.260.0000.00616.49
7.4.250.0000.00716.55
7.4.240.0020.00616.62
7.4.230.0040.00416.33
7.4.220.0070.01016.39
7.4.210.0080.00816.56
7.4.200.0040.00416.41
7.4.190.0050.00316.55
7.4.160.0090.00616.31
7.4.150.0120.00417.40
7.4.140.0070.01017.86
7.4.130.0130.00816.54
7.4.120.0100.01016.48
7.4.110.0060.01216.32
7.4.100.0120.00616.50
7.4.90.0120.00616.64
7.4.80.0120.00619.39
7.4.70.0100.00616.51
7.4.60.0120.00616.41
7.4.50.0030.00516.58
7.4.40.0060.01022.77
7.4.30.0080.00816.62
7.4.00.0030.01214.98
7.3.330.0030.00313.34
7.3.320.0000.00613.37
7.3.310.0000.00816.38
7.3.300.0030.00316.30
7.3.290.0120.00816.38
7.3.280.0100.00916.28
7.3.270.0070.01017.40
7.3.260.0090.00616.31
7.3.250.0130.00816.52
7.3.240.0060.01116.34
7.3.230.0140.00916.52
7.3.210.0120.00416.59
7.3.200.0070.01319.39
7.3.190.0030.01716.37
7.3.180.0110.00716.39
7.3.170.0110.00616.30
7.3.160.0130.00316.38
7.3.120.0060.00914.74
7.3.110.0030.01314.36
7.3.100.0030.01014.91
7.3.90.0030.01214.97
7.3.80.0000.01214.71
7.3.70.0090.00614.63
7.3.60.0060.00614.80
7.3.50.0090.00314.79
7.3.40.0070.00414.82
7.3.30.0060.00614.83
7.3.20.0040.01216.57
7.3.10.0080.00816.53
7.3.00.0070.00716.54
7.2.330.0310.02116.72
7.2.320.0050.01116.39
7.2.310.0030.01316.60
7.2.300.0160.00016.50
7.2.290.0080.00816.73
7.2.240.0070.00715.07
7.2.230.0090.00615.23
7.2.220.0090.00314.96
7.2.210.0000.01414.67
7.2.200.0060.00915.02
7.2.190.0040.01215.06
7.2.180.0030.01414.68
7.2.170.0040.01114.63
7.2.160.0070.00714.90
7.2.150.0100.00716.64
7.2.140.0130.00016.73
7.2.130.0040.01116.79
7.2.120.0080.00816.82
7.2.110.0060.00616.48
7.2.100.0100.00616.94
7.2.90.0040.00716.94
7.2.80.0140.00316.96
7.2.70.0100.00616.80
7.2.60.0080.00816.81
7.2.50.0060.00616.89
7.2.40.0110.00716.89
7.2.30.0070.01016.66
7.2.20.0070.00716.93
7.2.10.0060.00916.70
7.2.00.0050.00718.15
7.1.330.0120.00315.55
7.1.320.0070.00715.50
7.1.310.0070.01015.50
7.1.300.0110.00315.41
7.1.290.0080.00815.82
7.1.280.0100.00715.73
7.1.270.0060.00915.63
7.1.260.0120.00315.38
7.1.250.0070.00715.61
7.1.200.0000.00915.73
7.1.100.0030.00917.87
7.1.70.0070.00716.96
7.1.60.0070.01819.33
7.1.50.0000.02116.61
7.1.00.0000.08022.33
7.0.200.0210.00914.66
7.0.140.0000.07721.96
7.0.110.0670.07719.94
7.0.100.0530.08720.07
7.0.90.0670.07719.91
7.0.80.0600.07719.83
7.0.70.0630.07719.88
7.0.60.0600.07719.89
7.0.50.0600.08020.25
7.0.40.0030.05320.03
7.0.30.0070.08720.27
7.0.20.0130.07720.19
7.0.10.0170.06720.23
7.0.00.0130.07720.07
5.6.280.0100.06721.12
5.6.260.0100.05020.67
5.6.250.0100.07720.75
5.6.240.0030.07720.65
5.6.230.0100.08020.71
5.6.220.0030.08320.69
5.6.210.0070.08020.61
5.6.200.0030.06720.96
5.6.190.0070.08021.15
5.6.180.0070.07021.09
5.6.170.0100.06021.13
5.6.160.0000.05721.15
5.6.150.0100.07321.15
5.6.140.0000.08021.15
5.6.130.0100.08321.09
5.6.120.0070.09021.16
5.6.110.0030.08721.03
5.6.100.0070.08721.05
5.6.90.0070.09021.05
5.6.80.0200.03720.54
5.6.70.0130.07320.32
5.6.60.0170.07020.49
5.6.50.0070.08020.53
5.6.40.0070.08320.51
5.6.30.0100.05720.66
5.6.20.0070.08320.34
5.6.10.0100.07320.65
5.6.00.0170.07020.49
5.5.380.0170.06720.47
5.5.370.0130.07020.39
5.5.360.0030.08320.54
5.5.350.0070.09020.54
5.5.340.0100.08020.98
5.5.330.0100.07720.71
5.5.320.0070.08320.91
5.5.310.0170.07321.02
5.5.300.0030.09020.71
5.5.290.0100.08020.85
5.5.280.0170.07320.91
5.5.270.0100.08020.86
5.5.260.0130.07020.84
5.5.250.0070.08320.77
5.5.240.0200.07020.29
5.5.230.0100.06720.42
5.5.220.0170.07720.29
5.5.210.0170.07320.29
5.5.200.0100.07720.20
5.5.190.0130.07320.37
5.5.180.0200.06720.31
5.5.160.0100.07020.06
5.5.150.0130.07320.34
5.5.140.0170.07020.15
5.5.130.0100.07320.26
5.5.120.0200.03720.16
5.5.110.0030.07020.24
5.5.100.0130.07320.18
5.5.90.0030.07720.15
5.5.80.0030.08020.28
5.5.70.0130.06320.16
5.5.60.0030.07720.14
5.5.50.0070.07320.17
5.5.40.0070.07020.24
5.5.30.0070.08020.14
5.5.20.0000.07320.10
5.5.10.0000.07720.02
5.5.00.0130.07320.21
5.4.450.0030.08319.59
5.4.440.0130.07319.69
5.4.430.0070.07719.51
5.4.420.0070.07719.55
5.4.410.0130.07019.36
5.4.400.0100.08319.34
5.4.390.0070.08019.18
5.4.380.0070.04719.23
5.4.370.0130.06719.18
5.4.360.0130.05718.95
5.4.350.0070.07019.14
5.4.340.0030.07718.99
5.4.320.0000.08719.18
5.4.310.0170.06719.18
5.4.300.0070.08019.09
5.4.290.0030.05019.00
5.4.280.0100.07719.22
5.4.270.0030.07319.00
5.4.260.0100.07719.18
5.4.250.0100.07019.02
5.4.240.0000.07719.30
5.4.230.0000.08018.98
5.4.220.0070.08019.18
5.4.210.0100.07019.32
5.4.200.0070.07319.09
5.4.190.0100.07018.97
5.4.180.0170.06719.32
5.4.170.0100.06319.00
5.4.160.0100.07318.98
5.4.150.0170.04019.14
5.4.140.0130.06316.44
5.4.130.0070.04316.60
5.4.120.0030.07316.40
5.4.110.0130.06316.46
5.4.100.0100.07016.47
5.4.90.0130.06716.56
5.4.80.0000.06016.62
5.4.70.0270.05716.61
5.4.60.0070.07316.46
5.4.50.0030.06716.53
5.4.40.0130.06016.57
5.4.30.0030.07716.52
5.4.20.0100.06316.47
5.4.10.0100.06316.52
5.4.00.0100.06315.98
5.3.290.0100.07314.66
5.3.280.0130.07014.58
5.3.270.0130.06714.62
5.3.260.0070.07014.62
5.3.250.0070.06714.46
5.3.240.0000.08014.63
5.3.230.0100.06714.61
5.3.220.0130.05014.70
5.3.210.0130.07014.57
5.3.200.0070.07014.54
5.3.190.0100.07014.66
5.3.180.0070.08014.54
5.3.170.0030.06014.54
5.3.160.0030.07714.58
5.3.150.0070.07714.56
5.3.140.0030.07714.55
5.3.130.0070.05714.63
5.3.120.0070.07314.57
5.3.110.0030.07714.57
5.3.100.0030.07014.17
5.3.90.0200.05714.04
5.3.80.0100.07014.09
5.3.70.0000.07714.01
5.3.60.0070.06713.98
5.3.50.0030.07713.89
5.3.40.0070.04713.96
5.3.30.0100.06313.93
5.3.20.0130.06313.78
5.3.10.0030.07313.66
5.3.00.0070.06313.87
5.2.170.0100.05712.43
5.2.160.0030.06012.43
5.2.150.0030.06012.43
5.2.140.0070.06012.43
5.2.130.0100.06012.43
5.2.120.0070.05712.43
5.2.110.0070.06312.43
5.2.100.0030.06012.43
5.2.90.0030.04312.43
5.2.80.0000.03312.43
5.2.70.0070.05712.43
5.2.60.0070.03712.43
5.2.50.0030.06712.43
5.2.40.0030.06012.43
5.2.30.0030.06012.43
5.2.20.0070.06012.43
5.2.10.0070.05712.43
5.2.00.0000.06312.43
5.1.60.0030.04712.43
5.1.50.0100.04712.43
5.1.40.0000.05712.43
5.1.30.0030.06012.43
5.1.20.0030.05712.43
5.1.10.0100.05012.43
5.1.00.0070.05312.43
5.0.50.0000.04712.43
5.0.40.0030.03312.43
5.0.30.0030.06312.43
5.0.20.0030.04312.43
5.0.10.0070.04312.43
5.0.00.0070.06312.43
4.4.90.0000.03712.43
4.4.80.0030.03312.43
4.4.70.0000.04012.43
4.4.60.0030.03312.43
4.4.50.0070.02712.43
4.4.40.0030.05012.43
4.4.30.0030.03712.43
4.4.20.0000.02712.43
4.4.10.0000.03712.43
4.4.00.0000.05312.43
4.3.110.0030.02012.43
4.3.100.0030.03312.43
4.3.90.0000.03712.43
4.3.80.0030.04712.43
4.3.70.0030.03312.43
4.3.60.0000.03312.43
4.3.50.0000.04012.43
4.3.40.0030.05312.43
4.3.30.0030.03312.43
4.3.20.0030.02712.43
4.3.10.0070.03012.43
4.3.00.0000.03012.43

preferences:
49.43 ms | 400 KiB | 5 Q