3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $foo = 5; public function test() { return $this->foo; } } $test = new Test(); $var = $test->test(); var_dump($var);

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.30
8.3.50.0090.00921.20
8.3.40.0000.01518.42
8.3.30.0100.00518.83
8.3.20.0040.00420.20
8.3.10.0060.00322.05
8.3.00.0040.00422.38
8.2.180.0140.00716.50
8.2.170.0120.00922.96
8.2.160.0070.00719.22
8.2.150.0040.00424.18
8.2.140.0090.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00019.40
8.2.110.0090.00022.16
8.2.100.0090.00318.03
8.2.90.0080.00019.03
8.2.80.0040.00418.04
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0000.00818.03
8.2.30.0040.00717.98
8.2.20.0040.00417.64
8.2.10.0030.00517.69
8.2.00.0040.00717.68
8.1.280.0060.00925.92
8.1.270.0080.00018.22
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.90
8.1.230.0090.00318.97
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0050.00517.25
8.1.190.0040.00417.28
8.1.180.0030.00520.30
8.1.170.0040.00418.58
8.1.160.0040.00422.13
8.1.150.0000.00718.45
8.1.140.0050.00317.39
8.1.130.0030.00317.37
8.1.120.0070.00017.30
8.1.110.0060.00317.43
8.1.100.0040.00417.24
8.1.90.0040.00417.39
8.1.80.0000.00817.36
8.1.70.0080.00017.38
8.1.60.0090.00017.59
8.1.50.0050.00317.45
8.1.40.0000.00717.51
8.1.30.0020.00517.52
8.1.20.0030.00517.48
8.1.10.0070.00317.48
8.1.00.0050.00517.37
8.0.300.0000.00818.77
8.0.290.0000.00817.18
8.0.280.0040.00418.34
8.0.270.0000.00717.08
8.0.260.0000.00716.75
8.0.250.0030.00316.97
8.0.240.0040.00416.77
8.0.230.0030.00316.76
8.0.220.0040.00416.81
8.0.210.0040.00416.84
8.0.200.0000.00616.94
8.0.190.0000.00816.77
8.0.180.0050.00216.74
8.0.170.0040.00416.80
8.0.160.0000.00816.80
8.0.150.0040.00416.87
8.0.140.0030.00616.77
8.0.130.0030.00313.29
8.0.120.0000.00716.85
8.0.110.0040.00416.85
8.0.100.0040.00416.93
8.0.90.0040.00416.64
8.0.80.0110.00716.74
8.0.70.0000.00816.71
8.0.60.0040.00416.77
8.0.50.0040.00416.87
8.0.30.0060.01317.23
8.0.20.0090.00917.40
8.0.10.0050.00216.98
8.0.00.0140.00416.77
7.4.330.0030.00315.00
7.4.320.0030.00316.41
7.4.300.0070.00016.49
7.4.290.0000.00716.59
7.4.280.0090.00016.58
7.4.270.0030.00316.52
7.4.260.0030.00616.34
7.4.250.0020.00516.55
7.4.240.0050.00216.55
7.4.230.0040.00416.65
7.4.220.0030.01616.52
7.4.210.0060.00916.62
7.4.200.0030.00316.63
7.4.190.0040.00416.76
7.4.160.0100.00616.58
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0070.01216.56
7.4.120.0080.00916.55
7.4.110.0070.01416.40
7.4.100.0180.00516.53
7.4.90.0030.01416.29
7.4.80.0060.01219.39
7.4.70.0060.01216.49
7.4.60.0100.00716.52
7.4.50.0000.00816.55
7.4.40.0030.01022.77
7.4.30.0060.00916.33
7.4.00.0040.01214.91
7.3.330.0050.00013.26
7.3.320.0050.00013.09
7.3.310.0030.00316.27
7.3.300.0030.00316.25
7.3.290.0030.01316.29
7.3.280.0070.01016.33
7.3.270.0130.01017.40
7.3.260.0140.00316.23
7.3.250.0110.00816.33
7.3.240.0090.00916.22
7.3.230.0110.01116.42
7.3.210.0100.00716.22
7.3.200.0100.00719.39
7.3.190.0110.00516.25
7.3.180.0120.00316.31
7.3.170.0080.00816.59
7.3.160.0060.01216.43
7.3.120.0100.00714.73
7.3.110.0070.01014.74
7.3.100.0080.00315.00
7.3.90.0070.01014.68
7.3.80.0100.00314.73
7.3.70.0060.00914.74
7.3.60.0110.00414.80
7.3.50.0080.00514.90
7.3.40.0070.01014.57
7.3.30.0060.01014.33
7.3.20.0030.01016.63
7.3.10.0100.00316.64
7.3.00.0070.01016.55
7.2.330.0120.00616.67
7.2.320.0060.01016.28
7.2.310.0140.00316.51
7.2.300.0120.00416.69
7.2.290.0030.01216.37
7.2.250.0110.00715.07
7.2.240.0070.01314.85
7.2.230.0040.01515.23
7.2.220.0090.00015.14
7.2.210.0090.00614.85
7.2.200.0060.00914.84
7.2.190.0030.00714.90
7.2.180.0000.01414.88
7.2.170.0140.00014.71
7.2.60.0030.00716.64
7.1.330.0080.00415.47
7.1.320.0070.00715.81
7.1.310.0070.01015.79
7.1.300.0060.00615.56
7.1.290.0000.01515.74
7.1.280.0070.00715.74
7.1.270.0060.00615.79
7.1.260.0000.01115.75
7.1.200.0080.00815.76
7.1.70.0090.00617.13
7.1.60.0060.01619.82
7.1.50.0100.01016.80
7.1.00.0000.04322.28
7.0.200.0190.00614.47
7.0.140.0030.06721.97
7.0.60.0130.06319.88
7.0.50.0070.03717.86
7.0.40.0030.04320.13
7.0.30.0130.04720.19
7.0.20.0370.04020.27
7.0.10.0270.06020.12
7.0.00.0030.04720.14
5.6.280.0070.07321.02
5.6.210.0000.04320.70
5.6.200.0000.06018.15
5.6.190.0130.08320.55
5.6.180.3170.04020.43
5.6.170.0200.05020.62
5.6.160.0070.07720.43
5.6.150.0170.07018.18
5.6.140.0100.08018.21
5.6.130.0030.07718.27
5.6.120.0030.08721.13
5.6.110.0000.04721.11
5.6.100.0170.07020.98
5.6.90.0070.07720.98
5.6.80.0030.06320.50
5.6.70.0200.05320.36
5.5.350.0200.08020.36
5.5.340.0100.07718.07
5.5.330.0030.04320.27
5.5.320.0270.04020.38
5.5.310.0200.04720.32
5.5.300.0200.05317.92
5.5.290.0100.07717.95
5.5.280.0000.05720.77
5.5.270.0030.06020.75
5.5.260.0100.07720.76
5.5.250.0030.08020.58
5.5.240.0100.03720.23
5.4.450.0770.06719.48
5.4.440.0700.06319.38
5.4.430.0630.06319.57
5.4.420.0670.06319.34
5.4.410.0500.04719.06
5.4.400.0400.05318.83
5.4.390.0400.07318.72
5.4.380.0230.06318.81
5.4.370.0030.06018.81
5.4.360.0130.07018.50
5.4.350.0080.04512.02
5.4.340.0060.04312.01
5.4.320.0040.03712.50
5.4.310.0080.03612.49
5.4.300.0040.03812.50
5.4.290.0080.03412.50
5.4.280.0060.03512.39
5.4.270.0070.03412.39
5.4.260.0040.03812.39
5.4.250.0030.06318.73
5.4.240.0130.05018.96
5.4.230.0070.05318.72
5.4.220.0100.07018.82
5.4.210.0030.06018.93
5.4.200.0000.06018.66
5.4.190.0100.05018.95
5.4.180.0070.05318.93
5.4.170.0070.05318.98
5.4.160.0070.05319.06
5.4.150.0170.04718.74
5.4.140.0130.04716.38
5.4.130.0070.05016.42
5.4.120.0100.06316.46
5.4.110.0070.05316.40
5.4.100.0130.06316.48
5.4.90.0070.04716.46
5.4.80.0100.06716.38
5.4.70.0100.06716.54
5.4.60.0070.05016.54
5.4.50.0100.04316.51
5.4.40.0070.05016.53
5.4.30.0030.05316.50
5.4.20.0100.04716.62
5.4.10.0100.04716.45
5.4.00.0070.05015.82
5.3.290.0090.03612.80
5.3.280.0100.04714.56
5.3.270.0170.06314.68
5.3.260.0030.06014.82
5.3.250.0070.05014.66
5.3.240.0130.04314.84
5.3.230.0030.06314.70
5.3.220.0000.06314.53
5.3.210.0030.05714.64
5.3.200.0070.05314.72
5.3.190.0130.04314.72
5.3.180.0270.05714.38
5.3.170.0100.04714.39
5.3.160.0130.04314.64
5.3.150.0230.04314.73
5.3.140.0100.04714.63
5.3.130.0000.06014.68
5.3.120.0000.06014.60
5.3.110.0130.06314.39
5.3.100.0070.05314.11
5.3.90.0070.07314.03
5.3.80.0070.06314.09
5.3.70.0030.05314.10
5.3.60.0100.05014.16
5.3.50.0170.06314.05
5.3.40.0070.05014.04
5.3.30.0030.05014.12
5.3.20.0100.06013.91
5.3.10.0070.05013.73
5.3.00.0030.05013.60
5.2.170.0030.05311.36
5.2.160.0070.04010.98
5.2.150.0100.04011.25
5.2.140.0070.04011.23
5.2.130.0030.04010.92
5.2.120.0000.04311.05
5.2.110.0100.03711.17
5.2.100.0130.03011.00
5.2.90.0070.03711.18
5.2.80.0000.04711.04
5.2.70.0070.04011.09
5.2.60.0030.04311.21
5.2.50.0070.04311.00
5.2.40.0130.03711.21
5.2.30.0100.04011.04
5.2.20.0100.03311.03
5.2.10.0000.04310.95
5.2.00.0000.04310.79
5.1.60.0000.03710.23
5.1.50.0070.03310.06
5.1.40.0130.03010.04
5.1.30.0000.04010.30
5.1.20.0100.03310.38
5.1.10.0070.03310.03
5.1.00.0030.03710.26
5.0.50.0100.0238.80
5.0.40.0070.0238.42
5.0.30.0000.0538.22
5.0.20.0100.0278.24
5.0.10.0100.0208.26
5.0.00.0030.0408.14
4.4.90.0000.0236.97
4.4.80.0070.0276.97
4.4.70.0000.0236.97
4.4.60.0100.0206.97
4.4.50.0030.0236.97
4.4.40.0070.0306.97
4.4.30.0000.0236.97
4.4.20.0030.0206.96
4.4.10.0030.0206.94
4.4.00.0000.0336.94
4.3.110.0030.0236.94
4.3.100.0030.0236.94
4.3.90.0070.0236.94
4.3.80.0000.0336.97
4.3.70.0030.0306.97
4.3.60.0000.0236.97
4.3.50.0000.0236.97
4.3.40.0070.0436.97
4.3.30.0030.0206.97
4.3.20.0000.0236.97
4.3.10.0000.0236.97
4.3.00.0170.0177.66

preferences:
41.36 ms | 401 KiB | 5 Q