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; })->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.0140.00316.75
8.3.50.0160.00222.06
8.3.40.0070.00718.88
8.3.30.0090.00619.01
8.3.20.0080.00020.34
8.3.10.0070.00323.48
8.3.00.0000.00819.38
8.2.180.0000.01516.63
8.2.170.0180.00322.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00320.51
8.2.110.0000.01020.97
8.2.100.0090.00317.91
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0060.00318.05
8.2.50.0080.00318.07
8.2.40.0080.00019.95
8.2.30.0070.00018.26
8.2.20.0040.00417.65
8.2.10.0050.00318.05
8.2.00.0040.00417.58
8.1.280.0210.00025.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0090.00021.34
8.1.230.0070.00417.42
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0080.00017.23
8.1.180.0000.00819.13
8.1.170.0040.00418.57
8.1.160.0000.00821.98
8.1.150.0000.00718.55
8.1.140.0000.00717.48
8.1.130.0030.00317.91
8.1.120.0000.00717.51
8.1.110.0060.00317.48
8.1.100.0000.00717.50
8.1.90.0040.00417.38
8.1.80.0030.00617.38
8.1.70.0000.00717.30
8.1.60.0060.00317.61
8.1.50.0000.00817.39
8.1.40.0050.00417.41
8.1.30.0080.00417.70
8.1.20.0030.00617.64
8.1.10.0000.00717.59
8.1.00.0070.00017.37
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0050.00318.48
8.0.270.0080.00017.24
8.0.260.0030.00317.17
8.0.250.0050.00316.92
8.0.240.0030.00316.95
8.0.230.0070.00016.84
8.0.220.0000.00716.73
8.0.210.0020.00516.84
8.0.200.0030.00516.93
8.0.190.0070.00016.88
8.0.180.0080.00016.91
8.0.170.0040.00416.91
8.0.160.0000.00716.87
8.0.150.0040.00416.78
8.0.140.0040.00416.75
8.0.130.0070.00013.25
8.0.120.0030.00616.77
8.0.110.0040.00416.84
8.0.100.0050.00316.77
8.0.90.0040.00416.67
8.0.80.0160.00016.95
8.0.70.0070.00016.71
8.0.60.0000.00716.71
8.0.50.0000.00716.86
8.0.30.0160.00616.89
8.0.20.0080.01417.40
8.0.10.0040.00417.10
8.0.00.0080.00916.83
7.4.330.0050.00015.09
7.4.320.0030.00316.58
7.4.300.0040.00416.39
7.4.290.0070.00316.62
7.4.280.0080.00016.59
7.4.270.0030.00516.61
7.4.260.0070.00016.57
7.4.250.0070.00016.55
7.4.240.0030.00316.46
7.4.230.0030.00316.58
7.4.220.0190.00616.70
7.4.210.0020.01216.53
7.4.200.0030.00316.47
7.4.190.0030.00316.49
7.4.160.0100.01316.41
7.4.150.0060.01317.40
7.4.140.0130.00617.86
7.4.130.0090.00816.48
7.4.120.0070.01016.60
7.4.110.0120.00616.27
7.4.100.0140.00616.56
7.4.90.0140.00916.38
7.4.80.0120.00919.39
7.4.70.0060.00916.49
7.4.60.0040.01216.39
7.4.50.0090.00016.44
7.4.40.0030.01316.55
7.4.30.0120.00416.37
7.4.00.0000.01314.86
7.3.330.0030.00313.32
7.3.320.0060.00013.04
7.3.310.0030.00516.33
7.3.300.0040.00416.15
7.3.290.0090.00616.28
7.3.280.0050.01216.31
7.3.270.0100.00617.40
7.3.260.0100.00716.45
7.3.250.0060.01116.42
7.3.240.0130.01016.23
7.3.230.0150.00416.39
7.3.210.0100.00716.59
7.3.200.0160.01019.39
7.3.190.0090.01116.41
7.3.180.0060.00916.24
7.3.170.0040.01216.35
7.3.160.0040.01216.45
7.3.120.0100.00614.85
7.3.00.0090.00316.66
7.2.330.0130.01016.70
7.2.320.0100.00716.78
7.2.310.0070.01016.73
7.2.300.0160.00216.84
7.2.290.0210.00016.39
7.2.130.0070.00716.96
7.2.120.0080.00016.95
7.2.110.0070.00716.68
7.2.100.0040.00716.92
7.2.90.0040.00716.71
7.2.80.0070.00916.63
7.2.70.0040.00716.70
7.2.60.0060.00516.93
7.2.50.0040.00416.89
7.2.40.0090.00616.73
7.2.30.0030.00616.69
7.2.20.0070.00716.77
7.2.10.0130.00016.72
7.2.00.0060.00518.14
7.1.250.0030.01215.64
7.1.240.0030.00715.53
7.1.230.0050.00315.81
7.1.220.0060.00615.77
7.1.210.0040.01115.68
7.1.200.0060.00615.76
7.1.190.0090.00015.66
7.1.180.0070.00315.91
7.1.170.0070.00415.67
7.1.160.0070.00415.73
7.1.150.0040.00815.77
7.1.140.0080.00615.87
7.1.130.0030.00515.45
7.1.120.0040.00415.83
7.1.110.0060.00315.89
7.1.100.0020.01216.96
7.1.90.0030.01015.80
7.1.80.0030.00915.58
7.1.70.0040.00516.49
7.1.60.0020.01417.59
7.1.50.0090.00825.31
7.1.40.0060.00915.48
7.1.30.0070.00715.73
7.1.20.0070.00715.81
7.1.10.0030.01015.89
7.1.00.0030.04219.02
7.0.330.0070.00715.27
7.0.320.0090.00315.30
7.0.310.0050.00315.19
7.0.300.0050.00515.23
7.0.290.0100.00315.27
7.0.280.0040.00815.37
7.0.270.0030.00615.38
7.0.260.0060.00615.12
7.0.250.0070.00715.44
7.0.240.0040.00715.45
7.0.230.0070.00415.23
7.0.220.0030.01015.55
7.0.210.0040.00815.36
7.0.200.0040.00515.87
7.0.190.0040.00715.55
7.0.180.0070.00315.48
7.0.170.0000.01015.49
7.0.160.0030.00715.55
7.0.150.0070.00415.62
7.0.140.0070.03318.55
7.0.130.0000.01115.50
7.0.120.0000.01015.23
7.0.110.0070.00415.50
7.0.100.0170.02617.67
7.0.90.0190.04617.62
7.0.80.0170.04117.66
7.0.70.0220.04217.60
7.0.60.0200.04517.53
7.0.50.0220.03917.84
7.0.40.0070.02616.63
7.0.30.0030.04816.66
7.0.20.0000.04616.63
7.0.10.0070.04316.79
7.0.00.0070.03516.74
5.6.380.0040.00414.28
5.6.370.0060.00314.24
5.6.360.0000.01014.11
5.6.350.0000.01314.13
5.6.340.0040.00814.15
5.6.330.0040.00813.99
5.6.320.0060.00614.31
5.6.310.0060.00314.25
5.6.300.0070.00414.09
5.6.290.0080.00313.93
5.6.280.0060.03817.43
5.6.270.0080.00314.16
5.6.260.0040.00713.89
5.6.250.0120.03417.35
5.6.240.0020.04917.44
5.6.230.0100.03817.32
5.6.220.0030.04517.38
5.6.210.0030.04717.23
5.6.200.0100.04217.50
5.6.190.0070.04217.58
5.6.180.0080.02517.48
5.6.170.0140.04017.68
5.6.160.0080.04217.56
5.6.150.0070.04417.52
5.6.140.0050.02717.64
5.6.130.0120.04217.62
5.6.120.0100.04417.63
5.6.110.0070.04217.47
5.6.100.0050.04817.53
5.6.90.0030.05217.49
5.6.80.0090.04217.22
5.6.70.0050.04217.24
5.6.60.0020.04617.13
5.6.50.0060.02117.22
5.6.40.0030.04517.35
5.6.30.0070.02717.07
5.6.20.0070.04017.26
5.6.10.0010.02317.13
5.6.00.0030.04017.14
5.5.380.0110.03315.68
5.5.370.0020.04315.76
5.5.360.0030.04215.67
5.5.350.0100.03915.67
5.5.340.0070.03815.88
5.5.330.0030.03715.79
5.5.320.0020.04415.96
5.5.310.0030.04715.94
5.5.300.0070.03415.95
5.5.290.0050.04615.91
5.5.280.0110.03615.96
5.5.270.0050.04515.76
5.5.260.0070.04015.87
5.5.250.0060.04315.69
5.5.240.0080.03615.44
5.5.230.0060.02015.37
5.5.220.0060.04315.50
5.5.210.0070.03515.47
5.5.200.0070.02515.58
5.5.190.0050.03815.59
5.5.180.0020.02515.61
5.5.170.0000.00711.02
5.5.160.0000.04615.63
5.5.150.0010.04615.49
5.5.140.0050.02015.52
5.5.130.0090.03815.62
5.5.120.0040.04815.54
5.5.110.0030.02215.63
5.5.100.0060.03715.43
5.5.90.0060.02715.53
5.5.80.0020.04015.46
5.5.70.0020.04715.34
5.5.60.0040.04115.38
5.5.50.0030.04215.48
5.5.40.0020.02315.55
5.5.30.0020.02215.46
5.5.20.0080.03515.56
5.5.10.0100.03315.48
5.5.00.0060.03515.47
5.4.450.0080.03815.11
5.4.440.0050.03815.16
5.4.430.0030.03715.02
5.4.420.0050.02015.05
5.4.410.0050.02915.07
5.4.400.0060.02614.84
5.4.390.0050.02514.99
5.4.380.0040.04514.83
5.4.370.0080.02114.98
5.4.360.0070.03814.78
5.4.350.0050.02314.72
5.4.340.0000.02314.92
5.4.330.0070.00310.82
5.4.320.0050.03214.87
5.4.310.0050.03914.94
5.4.300.0020.04415.00
5.4.290.0030.04114.94
5.4.280.0060.02314.93
5.4.270.0050.02614.98
5.4.260.0020.02514.96
5.4.250.0070.03815.10
5.4.240.0030.03514.98
5.4.230.0020.04514.97
5.4.220.0070.04014.77
5.4.210.0040.04014.97
5.4.200.0050.04015.04
5.4.190.0010.02514.76
5.4.180.0090.03814.93
5.4.170.0080.03314.95
5.4.160.0040.04114.90
5.4.150.0050.03814.93
5.4.140.0040.03413.59
5.4.130.0040.03913.55
5.4.120.0010.04313.58
5.4.110.0030.03713.60
5.4.100.0030.02313.59
5.4.90.0050.02013.59
5.4.80.0050.01713.66
5.4.70.0000.02513.68
5.4.60.0020.02313.52
5.4.50.0040.02013.60
5.4.40.0030.02113.62
5.4.30.0070.01713.68
5.4.20.0000.02213.49
5.4.10.0020.02413.51
5.4.00.0050.01813.39
5.3.290.0070.04012.55
5.3.280.0020.02712.40
5.3.270.0050.02512.53
5.3.260.0060.02012.39
5.3.250.0030.03012.44
5.3.240.0030.04812.29
5.3.230.0050.03712.43
5.3.220.0020.03212.46
5.3.210.0030.03512.47
5.3.200.0020.03912.46
5.3.190.0040.02212.51
5.3.180.0000.04512.59
5.3.170.0000.02112.41
5.3.160.0020.02312.48
5.3.150.0060.01812.46
5.3.140.0040.02112.45
5.3.130.0030.02112.38
5.3.120.0060.01812.45
5.3.110.0020.02212.30
5.3.100.0060.01512.22
5.3.90.0040.02212.29
5.3.80.0030.03712.20
5.3.70.0040.01712.12
5.3.60.0020.02012.06
5.3.50.0020.02312.10
5.3.40.0050.02012.11
5.3.30.0050.02112.12
5.3.20.0030.02011.90
5.3.10.0050.03211.87
5.3.00.0030.03711.83
5.2.170.0040.01310.50
5.2.160.0020.02010.51
5.2.150.0020.01710.56
5.2.140.0000.02510.50
5.2.130.0040.01510.46
5.2.120.0120.00810.60
5.2.110.0040.01510.52
5.2.100.0010.01810.52
5.2.90.0040.01310.59
5.2.80.0060.02610.58
5.2.70.0030.01710.47
5.2.60.0000.02910.52
5.2.50.0030.01610.53
5.2.40.0000.01910.41
5.2.30.0020.02310.50
5.2.20.0030.02510.52
5.2.10.0050.01510.44
5.2.00.0070.01210.29
5.1.60.0020.01510.21
5.1.50.0010.01510.21
5.1.40.0040.01210.21
5.1.30.0000.01510.21
5.1.20.0020.01610.21
5.1.10.0000.01610.21
5.1.00.0020.01510.21
5.0.50.0020.01010.21
5.0.40.0030.00910.21
5.0.30.0040.01410.21
5.0.20.0060.01510.21
5.0.10.0030.01210.21
5.0.00.0020.01910.21
4.4.90.0020.01510.21
4.4.80.0000.01110.21
4.4.70.0000.00910.21
4.4.60.0030.00810.21
4.4.50.0000.01010.21
4.4.40.0000.01510.21
4.4.30.0000.01110.21
4.4.20.0020.01010.21
4.4.10.0050.00610.21
4.4.00.0000.01410.21
4.3.110.0030.01010.21
4.3.100.0020.01210.21
4.3.90.0010.01010.21
4.3.80.0020.01310.21
4.3.70.0040.01410.21
4.3.60.0010.01010.21
4.3.50.0000.02010.21
4.3.40.0020.01310.21
4.3.30.0030.00810.21
4.3.20.0030.00810.21
4.3.10.0000.01210.21
4.3.00.0020.00810.21

preferences:
46.3 ms | 401 KiB | 5 Q