3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call($f) { return $f(); } class A { protected $a; public function foo() { strtolower( call(function() { set_error_handler(function() {}); $class = get_called_class(); restore_error_handler(); return $class; })); $f = function() { }; $f(); } } $a = new A; $a->foo();

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.0090.00618.43
8.3.50.0110.00721.14
8.3.40.0140.00018.70
8.3.30.0100.00320.17
8.3.20.0080.00020.29
8.3.10.0040.00421.92
8.3.00.0080.00022.38
8.2.180.0090.00616.75
8.2.170.0120.00322.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0130.00624.66
8.2.130.0110.00726.16
8.2.120.0080.00019.56
8.2.110.0040.00422.16
8.2.100.0070.00419.28
8.2.90.0050.00219.05
8.2.80.0000.00819.39
8.2.70.0030.00617.63
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0000.00718.22
8.2.30.0000.00718.15
8.2.20.0000.00817.74
8.2.10.0000.00817.70
8.2.00.0000.00817.74
8.1.280.0140.00725.92
8.1.270.0060.00320.35
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0040.00423.82
8.1.230.0090.00319.16
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00917.25
8.1.190.0050.00317.41
8.1.180.0060.00318.56
8.1.170.0080.00018.49
8.1.160.0000.00922.05
8.1.150.0000.00818.56
8.1.140.0060.00317.46
8.1.130.0030.00317.86
8.1.120.0000.00717.46
8.1.110.0080.00017.44
8.1.100.0040.00417.47
8.1.90.0070.00017.46
8.1.80.0070.00017.32
8.1.70.0030.00317.41
8.1.60.0050.00317.47
8.1.50.0030.00517.43
8.1.40.0030.00717.41
8.1.30.0000.00917.46
8.1.20.0000.00817.73
8.1.10.0070.00017.50
8.1.00.0030.00917.39
8.0.300.0000.00818.77
8.0.290.0040.00417.18
8.0.280.0040.00418.43
8.0.270.0030.00317.12
8.0.260.0040.00416.68
8.0.250.0000.00716.93
8.0.240.0050.00316.87
8.0.230.0030.00316.88
8.0.220.0000.00716.81
8.0.210.0030.00316.81
8.0.200.0030.00316.95
8.0.190.0040.00416.91
8.0.180.0000.00716.93
8.0.170.0030.00616.95
8.0.160.0070.00016.88
8.0.150.0070.00016.74
8.0.140.0030.00616.73
8.0.130.0000.00613.41
8.0.120.0040.00416.91
8.0.110.0000.00716.92
8.0.100.0040.00416.77
8.0.90.0050.00316.89
8.0.80.0090.01216.84
8.0.70.0000.00816.94
8.0.60.0040.00416.93
8.0.50.0000.00716.73
8.0.30.0110.00817.13
8.0.20.0110.00917.40
8.0.10.0040.00416.98
8.0.00.0120.00616.81
7.4.330.0000.00515.00
7.4.320.0000.00716.51
7.4.300.0040.00416.61
7.4.290.0070.00016.64
7.4.280.0000.00716.54
7.4.270.0000.00716.44
7.4.260.0000.00716.59
7.4.250.0040.00416.59
7.4.240.0030.00316.60
7.4.230.0000.00716.55
7.4.220.0170.00016.71
7.4.210.0100.00516.62
7.4.200.0040.00416.63
7.4.190.0000.00816.69
7.4.160.0110.00816.69
7.4.150.0080.00817.40
7.4.140.0030.01617.86
7.4.130.0070.01216.47
7.4.120.0060.01416.55
7.4.110.0070.01016.50
7.4.100.0090.00916.37
7.4.90.0070.01016.48
7.4.80.0110.00619.39
7.4.70.0100.01016.47
7.4.60.0090.00616.54
7.4.50.0020.00216.37
7.4.40.0030.01022.77
7.4.30.0130.01016.48
7.4.00.0030.01315.04
7.3.330.0050.00013.33
7.3.320.0030.00213.36
7.3.310.0000.00716.29
7.3.300.0030.00316.31
7.3.290.0110.00316.27
7.3.280.0090.00716.30
7.3.270.0100.01017.40
7.3.260.0090.00916.36
7.3.250.0080.00816.31
7.3.240.0110.00716.35
7.3.230.0060.01116.46
7.3.210.0000.01616.31
7.3.200.0080.00819.39
7.3.190.0040.01416.38
7.3.180.0070.01716.39
7.3.170.0140.00716.35
7.3.160.0040.01116.32
7.3.120.0060.00914.79
7.2.330.0030.01416.34
7.2.320.0100.00916.29
7.2.310.0090.00816.52
7.2.300.0130.00316.46
7.2.290.0100.00716.59
7.2.60.0040.00716.63
7.2.00.0090.00619.25
7.1.200.0070.00715.80
7.1.100.0130.00018.04
7.1.70.0000.00816.97
7.1.60.0150.00919.40
7.1.50.0030.01716.83
7.1.00.0030.07722.33
7.0.200.0030.00916.36
7.0.140.0030.07322.11
7.0.60.0100.07020.03
7.0.50.0100.08317.95
7.0.40.0030.05720.27
7.0.30.0170.05020.23
7.0.20.0330.07020.07
7.0.10.0070.08720.07
7.0.00.0170.08020.24
5.6.280.0000.07721.05
5.6.210.0200.06720.78
5.6.200.0130.05318.18
5.6.190.0030.04720.67
5.6.180.0300.06020.61
5.6.170.0270.07320.51
5.6.160.0130.07720.50
5.6.150.0000.05018.23
5.6.140.0230.06718.15
5.6.130.0030.04018.23
5.6.120.0030.08320.91
5.6.110.0130.07320.99
5.6.100.0030.04020.98
5.6.90.0070.07321.14
5.6.80.0070.06020.38
5.6.70.4500.04020.52
5.5.350.0170.04020.51
5.5.340.0130.06717.96
5.5.330.0070.06020.58
5.5.320.0200.07720.27
5.5.310.0230.05720.34
5.5.300.0030.08717.94
5.5.290.0100.03717.97
5.5.280.0170.07720.89
5.5.270.0100.08320.90
5.5.260.0070.05320.97
5.5.250.0070.08020.51
5.5.240.0100.03720.16
5.4.450.0730.06719.71
5.4.440.0800.05319.65
5.4.430.0730.05719.61
5.4.420.0900.06319.60
5.4.410.0730.05719.35
5.4.400.1330.07018.52
5.4.390.1300.06018.54
5.4.380.0370.05318.75
5.4.370.0130.05318.48
5.4.360.0130.05318.74
5.4.350.0110.05512.03
5.4.340.0080.03612.03
5.4.320.0040.03912.52
5.4.310.0040.04012.51
5.4.300.0060.04312.52
5.4.290.0060.04712.51
5.4.280.0050.03712.41
5.4.270.0070.03612.41
5.4.260.0080.03912.41
5.4.250.0200.04719.01
5.4.240.0100.06318.80
5.4.230.0100.06719.00
5.4.220.0270.05718.77
5.4.210.0030.05718.80
5.4.200.0070.05318.95
5.4.190.0130.05319.05
5.4.180.0100.05018.99
5.4.170.0000.06018.75
5.4.160.0100.05018.83
5.4.150.0200.06018.95
5.4.140.0130.04316.44
5.4.130.0130.04316.48
5.4.120.0070.05716.45
5.4.110.0000.06316.53
5.4.100.0000.06016.61
5.4.90.0100.04716.54
5.4.80.0070.05016.49
5.4.70.0070.05016.45
5.4.60.0130.05016.48
5.4.50.0170.05716.48
5.4.40.0200.05716.43
5.4.30.0100.06016.52
5.4.20.0170.04316.37
5.4.10.0170.04716.61
5.4.00.0030.05315.83
5.3.290.0050.04112.80
5.3.280.0030.07314.67
5.3.270.0000.06314.64
5.3.260.0070.05714.61
5.3.250.0070.05314.79
5.3.240.0170.05014.68
5.3.230.0100.04714.77
5.3.220.0170.04714.80
5.3.210.0100.05314.71
5.3.200.0030.05314.76
5.3.190.0100.05714.80
5.3.180.0200.06014.71
5.3.170.0070.05314.60
5.3.160.0030.05314.71
5.3.150.0130.04714.40
5.3.140.0070.05014.75
5.3.130.0070.05714.75
5.3.120.0130.04714.58
5.3.110.0100.05314.58
5.3.100.0030.05714.23
5.3.90.0070.05014.25
5.3.80.0130.06314.01
5.3.70.0100.06313.86
5.3.60.0070.05714.07
5.3.50.0070.05013.98
5.3.40.0200.05714.05
5.3.30.0000.05314.01
5.3.20.0170.05013.72
5.3.10.0170.04313.56
5.3.00.0130.05713.64
5.2.170.0030.06011.14
5.2.160.0070.04011.32
5.2.150.0100.04311.21
5.2.140.0030.05711.20
5.2.130.0100.03711.18
5.2.120.0070.04011.09
5.2.110.0070.04011.18
5.2.100.0100.03311.09
5.2.90.0000.04311.10
5.2.80.0200.04011.09
5.2.70.0100.04011.12
5.2.60.0100.04011.06
5.2.50.0070.03711.11
5.2.40.0130.03711.07
5.2.30.0100.03711.14
5.2.20.0070.03711.03
5.2.10.0070.03710.77
5.2.00.0100.03710.79
5.1.60.0070.0339.95
5.1.50.0100.0309.96
5.1.40.0100.0309.96
5.1.30.0070.04710.41
5.1.20.0170.02710.44
5.1.10.0070.03710.13
5.1.00.0070.04710.26
5.0.50.0030.0308.55
5.0.40.0130.0208.49
5.0.30.0100.0378.31
5.0.20.0030.0338.16
5.0.10.0030.0408.15
5.0.00.0100.0338.16
4.4.90.0100.0237.43
4.4.80.0130.0207.43
4.4.70.0030.0237.43
4.4.60.0030.0237.43
4.4.50.0000.0237.43
4.4.40.0000.0377.43
4.4.30.0030.0207.43
4.4.20.0070.0277.43
4.4.10.0000.0337.43
4.4.00.0030.0337.43
4.3.110.0030.0207.42
4.3.100.0030.0237.42
4.3.90.0030.0207.43
4.3.80.0000.0337.43
4.3.70.0000.0277.43
4.3.60.0000.0237.43
4.3.50.0000.0377.43
4.3.40.0030.0307.43
4.3.30.0070.0177.43
4.3.20.0000.0237.43
4.3.10.0000.0237.43
4.3.00.0100.0236.66

preferences:
42.03 ms | 401 KiB | 5 Q