3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { public $e; public $charset = "UTF-8"; public function output() { $e = $this->e; echo $e('hi'); } } $t = new T; $t->e = function($str) { return $this->charset; }; $t->e = $t->e->bindTo($t); $t->output();

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.00716.63
8.3.50.0080.00722.05
8.3.40.0080.01118.93
8.3.30.0070.00719.12
8.3.20.0060.00320.28
8.3.10.0080.00023.51
8.3.00.0050.00319.38
8.2.180.0150.00618.54
8.2.170.0120.00922.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0100.00724.66
8.2.130.0050.00226.16
8.2.120.0060.00320.55
8.2.110.0040.00420.50
8.2.100.0030.01017.84
8.2.90.0050.00319.23
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0040.00419.97
8.2.30.0040.00418.25
8.2.20.0080.00017.69
8.2.10.0000.00718.05
8.2.00.0000.00717.56
8.1.280.0090.00625.92
8.1.270.0060.00324.01
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.58
8.1.230.0040.00720.90
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0000.00821.93
8.1.150.0000.00718.64
8.1.140.0000.00817.32
8.1.130.0000.00717.72
8.1.120.0000.00817.36
8.1.110.0070.00417.35
8.1.100.0070.00017.43
8.1.90.0070.00017.50
8.1.80.0030.00417.35
8.1.70.0030.00317.32
8.1.60.0060.00617.62
8.1.50.0080.00017.37
8.1.40.0040.00417.53
8.1.30.0080.00317.66
8.1.20.0050.00217.63
8.1.10.0040.00417.61
8.1.00.0070.00017.43
8.0.300.0020.00518.77
8.0.290.0070.00017.18
8.0.280.0000.00718.35
8.0.270.0000.00717.18
8.0.260.0060.00017.31
8.0.250.0000.00716.86
8.0.240.0070.00016.84
8.0.230.0040.00416.89
8.0.220.0030.00316.79
8.0.210.0030.00316.71
8.0.200.0060.00317.02
8.0.190.0040.00316.86
8.0.180.0070.00616.92
8.0.170.0000.00816.97
8.0.160.0040.00416.96
8.0.150.0000.00716.77
8.0.140.0040.00416.88
8.0.130.0030.00313.35
8.0.120.0030.00516.86
8.0.110.0080.00016.90
8.0.100.0000.00816.90
8.0.90.0040.00416.95
8.0.80.0090.00616.91
8.0.70.0040.00416.92
8.0.60.0040.00416.95
8.0.50.0080.00016.89
8.0.30.0090.00917.24
8.0.20.0140.00517.40
8.0.10.0000.00716.91
8.0.00.0110.00816.83
7.4.330.0000.00515.07
7.4.320.0000.00816.50
7.4.300.0070.00316.40
7.4.290.0030.00316.52
7.4.280.0000.00616.60
7.4.270.0000.00716.53
7.4.260.0030.00316.43
7.4.250.0000.00816.48
7.4.240.0030.00416.47
7.4.230.0070.00016.65
7.4.220.0140.01116.49
7.4.210.0070.00716.56
7.4.200.0030.00316.68
7.4.190.0070.00016.68
7.4.160.0090.00616.59
7.4.150.0130.01017.40
7.4.140.0080.01217.86
7.4.130.0110.00716.62
7.4.120.0100.01016.54
7.4.110.0080.00916.63
7.4.100.0100.00716.56
7.4.90.0060.01116.50
7.4.80.0160.01019.39
7.4.70.0060.01016.68
7.4.60.0130.01016.26
7.4.50.0030.00616.52
7.4.40.0040.01216.70
7.4.30.0030.01316.50
7.4.00.0060.01214.71
7.3.330.0070.00013.18
7.3.320.0060.00013.30
7.3.310.0040.00416.41
7.3.300.0000.00716.27
7.3.290.0070.01316.25
7.3.280.0110.00416.30
7.3.270.0100.00717.40
7.3.260.0180.00616.24
7.3.250.0120.00716.52
7.3.240.0110.00616.22
7.3.230.0070.01016.46
7.3.210.0110.01216.47
7.3.200.0130.00316.64
7.3.190.0230.00016.31
7.3.180.0120.00916.30
7.3.170.0090.00616.34
7.3.160.0090.00616.39
7.3.120.0100.00614.82
7.2.330.0090.00916.85
7.2.320.0110.00916.45
7.2.310.0030.01316.84
7.2.300.0070.01116.64
7.2.290.0070.01016.74
7.2.60.0170.00517.00
7.2.00.0000.01319.56
7.1.200.0080.00815.41
7.1.100.0030.00918.05
7.1.70.0050.00216.79
7.1.60.0070.01819.46
7.1.50.0070.01016.91
7.1.00.0000.08022.39
7.0.200.0000.00716.87
7.0.140.0100.06322.06
7.0.60.0070.07319.95
7.0.50.0070.08017.88
7.0.40.0070.05020.11
7.0.30.0230.07720.07
7.0.20.0200.08320.28
7.0.10.0030.04720.16
7.0.00.0070.04020.30
5.6.280.0070.07021.08
5.6.210.0130.07320.72
5.6.200.0030.06018.19
5.6.190.0170.06320.60
5.6.180.0030.04720.42
5.6.170.0230.05720.71
5.6.160.0230.07320.50
5.6.150.0100.07718.25
5.6.140.0000.04318.15
5.6.130.0070.07718.21
5.6.120.0070.07020.97
5.6.110.0200.07320.97
5.6.100.0100.07721.07
5.6.90.0100.07021.13
5.6.80.0170.07020.43
5.5.350.0300.06320.43
5.5.340.0130.07317.94
5.5.330.0000.04320.31
5.5.320.0100.06720.29
5.5.310.0170.04020.38
5.5.300.0070.07717.98
5.5.290.0130.04018.08
5.5.280.0100.08020.86
5.5.270.0070.06320.87
5.5.260.0200.06720.84
5.5.250.0100.03320.78
5.5.240.0170.06020.24
5.4.450.0170.06019.20
5.4.440.0200.06019.61
5.4.430.0300.05019.46
5.4.420.0170.06019.47
5.4.410.0400.06319.34
5.4.400.0430.03719.02
5.4.390.0300.07718.84
5.4.380.0430.04018.83
5.4.370.0230.05018.51
5.4.360.0270.05018.63
5.4.350.0400.04318.80
5.4.340.0270.05318.54
5.4.320.0090.03312.50
5.4.310.0090.04112.50
5.4.300.0120.03912.51
5.4.290.0070.04612.50
5.4.280.0130.03412.40
5.4.270.0100.04512.40
5.4.260.0060.04112.40
5.4.250.0070.04212.40
5.4.240.0110.04212.39
5.4.230.0070.04612.39
5.4.220.0110.03712.39
5.4.210.0090.04412.39
5.4.200.0090.03812.39
5.4.190.0100.04512.39
5.4.180.0070.04712.38
5.4.170.0320.04212.39
5.4.160.0080.04112.39
5.4.150.0130.06112.39
5.4.140.0090.06612.08
5.4.130.0090.03412.07
5.4.120.0050.03612.02
5.4.110.0040.03912.02
5.4.100.0150.04112.02
5.4.90.0130.04712.02
5.4.80.0070.04212.02
5.4.70.0060.03612.01
5.4.60.0040.03612.01
5.4.50.0080.03712.01
5.4.40.0090.04512.00
5.4.30.0080.04912.00
5.4.20.0090.05012.00
5.4.10.0060.05312.00
5.4.00.0090.03211.48
5.3.290.0080.04812.80
5.3.280.0090.03912.71
5.3.270.0080.04012.73
5.3.260.0080.03812.72
5.3.250.0080.03512.72
5.3.240.0050.04112.72
5.3.230.0070.03912.71
5.3.220.0090.03612.68
5.3.210.0050.04212.68
5.3.200.0060.04312.68
5.3.190.0090.04612.68
5.3.180.0070.03912.68
5.3.170.0070.04312.67
5.3.160.0080.04912.68
5.3.150.0070.03712.68
5.3.140.0080.03712.66
5.3.130.0100.03512.66
5.3.120.0100.03612.66
5.3.110.0090.03812.66
5.3.100.0080.05212.12
5.3.90.0120.04712.11
5.3.80.0070.04312.10
5.3.70.0110.04712.10
5.3.60.0050.04612.08
5.3.50.0070.03912.04
5.3.40.0080.03712.03
5.3.30.0060.03611.99
5.3.20.0090.03611.78
5.3.10.0070.03611.73
5.3.00.0060.03911.72
5.2.170.0030.0349.22
5.2.160.0020.0329.22
5.2.150.0080.0299.22
5.2.140.0070.0339.21
5.2.130.0040.0299.18
5.2.120.0050.0319.18
5.2.110.0040.0319.18
5.2.100.0120.0239.18
5.2.90.0080.0319.18
5.2.80.0090.0329.18
5.2.70.0040.0339.17
5.2.60.0030.0339.13
5.2.50.0060.0309.10
5.2.40.0030.0329.08
5.2.30.0070.0309.05
5.2.20.0060.0329.04
5.2.10.0060.0278.94
5.2.00.0030.0318.81
5.1.60.0010.0288.09
5.1.50.0040.0258.08
5.1.40.0050.0238.07
5.1.30.0020.0298.41
5.1.20.0050.0338.44
5.1.10.0020.0308.16
5.1.00.0030.0308.17
5.0.50.0040.0206.64
5.0.40.0040.0196.50
5.0.30.0030.0316.31
5.0.20.0040.0186.28
5.0.10.0050.0196.26
5.0.00.0030.0326.25
4.4.90.0030.0164.78
4.4.80.0020.0194.76
4.4.70.0040.0154.76
4.4.60.0030.0164.75
4.4.50.0060.0134.77
4.4.40.0060.0234.71
4.4.30.0030.0204.76
4.4.20.0020.0214.84
4.4.10.0050.0204.85
4.4.00.0060.0294.76
4.3.110.0040.0224.67
4.3.100.0050.0264.66
4.3.90.0030.0154.63
4.3.80.0030.0254.58
4.3.70.0030.0144.63
4.3.60.0020.0174.63
4.3.50.0030.0154.62
4.3.40.0060.0304.54
4.3.30.0040.0183.30
4.3.20.0030.0163.28
4.3.10.0020.0163.23
4.3.00.0030.0239.31

preferences:
37.87 ms | 401 KiB | 5 Q