3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foobar { public $bar = "blah</br>\n"; public function foo() { echo $this->$bar; } } foobar::foo(); $f = new foobar(); $f->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.0110.01116.75
8.3.50.0120.00717.38
8.3.40.0000.01418.79
8.3.30.0100.00318.68
8.3.20.0090.00018.70
8.3.10.0110.00420.56
8.3.00.0070.00419.19
8.2.180.0070.01116.63
8.2.170.0070.00722.96
8.2.160.0030.01020.86
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0140.00319.64
8.2.110.0090.00020.88
8.2.100.0080.00417.69
8.2.90.0000.00819.27
8.2.80.0060.00317.91
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0000.00817.87
8.2.20.0070.00017.59
8.2.10.0000.00717.61
8.2.00.0040.00417.55
8.1.280.0180.00025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0040.00720.57
8.1.230.0060.00620.73
8.1.220.0030.00617.74
8.1.210.0110.00018.77
8.1.200.0000.00817.35
8.1.190.0040.00417.53
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0000.00718.63
8.1.150.0040.00418.55
8.1.140.0080.00417.30
8.1.130.0000.00717.82
8.1.120.0000.00817.31
8.1.110.0030.00517.20
8.1.100.0000.00717.30
8.1.90.0040.00417.25
8.1.80.0000.00717.36
8.1.70.0040.00417.19
8.1.60.0040.00417.56
8.1.50.0020.00517.41
8.1.40.0040.00417.41
8.1.30.0040.00417.49
8.1.20.0070.00417.49
8.1.10.0000.00817.55
8.1.00.0060.00317.37
8.0.300.0070.00020.04
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0000.00717.07
8.0.260.0040.00418.38
8.0.250.0030.00316.85
8.0.240.0000.00716.92
8.0.230.0030.00316.96
8.0.220.0020.00516.85
8.0.210.0070.00016.89
8.0.200.0090.00016.83
8.0.190.0050.00316.82
8.0.180.0080.00016.86
8.0.170.0080.00016.80
8.0.160.0070.00016.79
8.0.150.0040.00416.86
8.0.140.0060.00316.74
8.0.130.0000.00613.30
8.0.120.0050.00316.74
8.0.110.0000.01116.71
8.0.100.0040.00416.71
8.0.90.0000.00716.93
8.0.80.0100.00616.82
8.0.70.0050.00316.86
8.0.60.0070.00016.84
8.0.50.0070.00016.93
8.0.30.0100.01216.83
8.0.20.0080.01317.14
8.0.10.0040.00416.98
8.0.00.0120.00716.61
7.4.330.0000.00512.79
7.4.320.0040.00416.30
7.4.300.0070.00016.45
7.4.290.0030.00316.54
7.4.280.0000.00916.44
7.4.270.0040.00416.43
7.4.260.0000.00613.19
7.4.250.0080.00016.48
7.4.240.0070.00016.43
7.4.230.0050.00216.63
7.4.220.0200.00416.45
7.4.210.0090.00716.51
7.4.200.0000.00716.61
7.4.190.0040.00416.40
7.4.160.0110.00616.53
7.4.150.0130.00716.46
7.4.140.0160.00516.57
7.4.130.0080.00916.40
7.4.120.0080.00816.39
7.4.110.0060.01016.36
7.4.100.0100.00716.69
7.4.90.0090.00916.36
7.4.80.0140.00316.36
7.4.70.0120.00316.21
7.4.60.0130.00416.47
7.4.50.0030.00716.36
7.4.40.0070.00716.27
7.4.30.0120.00416.65
7.4.00.0040.01114.99
7.3.330.0000.00613.36
7.3.320.0060.00013.30
7.3.310.0000.00716.45
7.3.300.0020.00516.29
7.3.290.0110.00416.44
7.3.280.0060.00816.42
7.3.270.0120.00616.41
7.3.260.0080.01016.48
7.3.250.0110.00816.35
7.3.240.0170.00016.30
7.3.230.0090.01216.67
7.3.210.0100.00716.54
7.3.200.0130.00319.39
7.3.190.0060.01016.22
7.3.180.0080.00816.16
7.3.170.0090.00916.70
7.3.160.0070.01016.60
7.3.120.0060.00614.70
7.2.330.0100.00716.58
7.2.320.0130.00916.68
7.2.310.0090.01016.30
7.2.300.0070.01716.67
7.2.290.0160.00016.55
7.2.60.0070.01016.75
7.2.00.0000.01319.36
7.1.200.0070.00715.39
7.1.100.0030.00717.91
7.1.70.0000.01017.07
7.1.60.0140.01119.40
7.1.50.0060.00616.45
7.1.00.0030.05322.45
7.0.200.0000.01016.72
7.0.140.0070.07022.00
7.0.120.0030.03722.14
7.0.60.0130.05019.93
7.0.50.0100.08317.84
7.0.40.0130.08017.76
7.0.30.0070.08317.75
7.0.20.0030.08717.73
7.0.10.0100.08317.78
7.0.00.0030.06017.75
5.6.280.0000.07721.07
5.6.210.0030.08720.61
5.6.200.0130.07318.25
5.6.190.0100.05718.19
5.6.180.0130.06718.18
5.6.170.0100.08018.25
5.6.160.0170.02718.29
5.6.150.0030.04018.20
5.6.140.0030.08718.18
5.6.130.0030.06718.18
5.6.120.0130.07318.16
5.6.110.0030.04318.16
5.6.100.0000.04318.14
5.6.90.0070.03718.16
5.6.80.0000.04017.62
5.6.70.0030.03717.50
5.6.60.0000.04017.56
5.6.50.0100.03017.51
5.6.40.0030.03717.64
5.6.30.0070.03317.51
5.6.20.0070.03317.62
5.6.10.0000.04017.57
5.6.00.0130.02717.50
5.5.350.0200.03320.49
5.5.340.0170.07718.05
5.5.330.0070.08717.95
5.5.320.0100.08017.96
5.5.310.0100.06717.95
5.5.300.0000.04717.99
5.5.290.0070.04318.06
5.5.280.0070.08018.07
5.5.270.0000.04317.94
5.5.260.0000.04317.91
5.5.250.0070.04017.75
5.5.240.0000.04017.47
5.5.230.0030.03717.34
5.5.220.0030.03717.41
5.5.210.0000.04017.32
5.5.200.0030.03717.28
5.5.190.0070.03317.35
5.5.180.0030.04017.36
5.5.160.0030.03717.34
5.5.150.0030.03717.27
5.5.140.0030.03717.39
5.5.130.0030.03717.27
5.5.120.0030.03717.38
5.5.110.0000.04017.43
5.5.100.0030.03717.30
5.5.90.0030.04317.32
5.5.80.0030.03717.23
5.5.70.0070.03317.19
5.5.60.0130.04317.22
5.5.50.0000.04717.31
5.5.40.0030.07717.17
5.5.30.0100.05317.21
5.5.20.0100.07017.21
5.5.10.0100.04717.21
5.5.00.0130.05317.31
5.4.450.0070.08319.45
5.4.440.0070.03719.36
5.4.430.0070.03719.45
5.4.420.0000.04319.47
5.4.410.0030.03719.21
5.4.400.0000.04018.91
5.4.390.0070.03319.05
5.4.380.0100.03719.27
5.4.370.0030.03719.27
5.4.360.0030.03718.89
5.4.350.0100.03319.14
5.4.340.0030.05319.09
5.4.320.0030.04019.02
5.4.310.0070.03319.12
5.4.300.0070.03319.10
5.4.290.0000.04019.14
5.4.280.0000.04019.04
5.4.270.0000.04019.02
5.4.260.0070.03318.91
5.4.250.0070.03719.04
5.4.240.0070.03319.09
5.4.230.0000.04019.02
5.4.220.0070.04719.11
5.4.210.0100.07018.88
5.4.200.0000.04319.03
5.4.190.0070.05319.11
5.4.180.0130.06019.09
5.4.170.0070.03718.88
5.4.160.0030.04319.07
5.4.150.0030.06719.03
5.4.140.0100.07316.41
5.4.130.0100.07016.42
5.4.120.0130.07016.42
5.4.110.0170.06316.35
5.4.100.0130.07016.48
5.4.90.0000.04316.48
5.4.80.0030.07316.22
5.4.70.0030.07016.44
5.4.60.0130.06016.44
5.4.50.0130.06316.35
5.4.40.0030.07016.35
5.4.30.0000.07016.20
5.4.20.0130.06716.43
5.4.10.0170.06316.35
5.4.00.0070.07015.80
5.3.290.0070.03314.71
5.3.280.0030.03714.67
5.3.270.0070.05014.67
5.3.260.0130.07014.65
5.3.250.0100.07314.66
5.3.240.0030.08014.82
5.3.230.0100.07714.63
5.3.220.0100.05314.56
5.3.210.0070.07314.59
5.3.200.0030.08314.60
5.3.190.0070.06714.53
5.3.180.0030.08014.52
5.3.170.0030.06714.61
5.3.160.0130.03314.60
5.3.150.0070.04314.61
5.3.140.0100.07714.54
5.3.130.0100.07314.57
5.3.120.0070.08014.76
5.3.110.0000.08314.75
5.3.100.0070.07314.11
5.3.90.0100.07013.96
5.3.80.0100.05313.90
5.3.70.0070.05714.08
5.3.60.0000.04013.99
5.3.50.0130.07013.96
5.3.40.0100.07313.83
5.3.30.0070.07713.90
5.3.20.0130.05313.58
5.3.10.0070.04313.66
5.3.00.0070.07313.63
5.2.170.0070.05711.03
5.2.160.0100.05311.16
5.2.150.0000.06710.99
5.2.140.0130.05311.14
5.2.130.0070.03711.16
5.2.120.0130.02311.00
5.2.110.0000.06311.15
5.2.100.0070.03710.94
5.2.90.0170.05311.31
5.2.80.0100.06711.07
5.2.70.0030.06011.19
5.2.60.0030.04311.04
5.2.50.0070.06010.88
5.2.40.0100.05711.09
5.2.30.0100.05710.87
5.2.20.0030.06010.94
5.2.10.0030.05310.85
5.2.00.0070.03010.95
5.1.60.0100.0479.97
5.1.50.0100.04310.05
5.1.40.0070.0209.81
5.1.30.0030.02710.18
5.1.20.0030.02710.39
5.1.10.0070.04310.16
5.1.00.0030.05710.04
5.0.50.0070.0278.62
5.0.40.0030.0408.34
5.0.30.0030.0638.03
5.0.20.0100.0408.12
5.0.10.0030.0408.10
5.0.00.0070.0538.36
4.4.90.0000.0307.66
4.4.80.0000.0207.66
4.4.70.0070.0237.66
4.4.60.0030.0377.66
4.4.50.0100.0207.66
4.4.40.0000.0607.66
4.4.30.0070.0177.66
4.4.20.0000.0177.66
4.4.10.0000.0337.66
4.4.00.0030.0577.66
4.3.110.0000.0377.66
4.3.100.0000.0377.66
4.3.90.0070.0277.66
4.3.80.0000.0407.66
4.3.70.0000.0307.66
4.3.60.0000.0237.66
4.3.50.0000.0407.66
4.3.40.0030.0507.66
4.3.30.0000.0307.66
4.3.20.0000.0237.66
4.3.10.0030.0377.66
4.3.00.0000.0277.66

preferences:
62.28 ms | 401 KiB | 5 Q