3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testClass{ protected $a; function __construct($a) { $this->a = $a; } public function toString() { echo $this->a; } } $b = new $testClass(10); $b->toString();

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.0120.00316.50
8.3.50.0150.00016.01
8.3.40.0100.00718.89
8.3.30.0110.00318.67
8.3.20.0080.00020.04
8.3.10.0040.00421.78
8.3.00.0000.00823.61
8.2.180.0140.00718.41
8.2.170.0070.00718.99
8.2.160.0030.01622.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0040.00419.64
8.2.120.0070.00026.35
8.2.110.0040.00422.26
8.2.100.0000.01117.93
8.2.90.0080.00019.23
8.2.80.0050.00317.97
8.2.70.0090.00017.38
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00422.25
8.2.30.0080.00419.25
8.2.20.0040.00417.55
8.2.10.0000.00818.04
8.2.00.0050.00317.91
8.1.280.0100.01025.92
8.1.270.0050.00224.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.84
8.1.230.0110.00019.15
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.13
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0080.00018.58
8.1.160.0080.00020.69
8.1.150.0040.00418.80
8.1.140.0040.00419.51
8.1.130.0000.00717.59
8.1.120.0030.00317.34
8.1.110.0050.00317.27
8.1.100.0040.00417.37
8.1.90.0040.00417.28
8.1.80.0000.00717.24
8.1.70.0000.00717.32
8.1.60.0000.00817.54
8.1.50.0000.00817.36
8.1.40.0030.00617.36
8.1.30.0080.00017.61
8.1.20.0000.00817.59
8.1.10.0000.00817.39
8.1.00.0030.00517.31
8.0.300.0060.00318.77
8.0.290.0060.00316.75
8.0.280.0000.00718.31
8.0.270.0040.00417.14
8.0.260.0000.00717.09
8.0.250.0000.00816.93
8.0.240.0070.00016.84
8.0.230.0000.00716.84
8.0.220.0030.00316.91
8.0.210.0030.00316.88
8.0.200.0030.00316.98
8.0.190.0040.00416.94
8.0.180.0060.00316.84
8.0.170.0040.00416.92
8.0.160.0030.00616.89
8.0.150.0050.00316.79
8.0.140.0040.00416.85
8.0.130.0000.00513.25
8.0.120.0040.00416.79
8.0.110.0000.00716.91
8.0.100.0040.00416.72
8.0.90.0000.00716.95
8.0.80.0030.01516.88
8.0.70.0040.00416.86
8.0.60.0000.00716.67
8.0.50.0040.00416.83
8.0.30.0060.01317.10
8.0.20.0090.01017.40
8.0.10.0000.00716.73
8.0.00.0110.00816.64
7.4.330.0050.00016.89
7.4.320.0040.00416.46
7.4.300.0030.00316.41
7.4.290.0000.00816.39
7.4.280.0030.00616.33
7.4.270.0000.00716.51
7.4.260.0070.00316.41
7.4.250.0070.00016.25
7.4.240.0000.00816.42
7.4.230.0070.00016.32
7.4.220.0110.00416.33
7.4.210.0140.00216.59
7.4.200.0030.00316.55
7.4.160.0060.00916.31
7.4.150.0140.00417.40
7.4.140.0080.01117.86
7.4.130.0110.01016.46
7.4.120.0120.00516.63
7.4.110.0100.00716.43
7.4.100.0100.01016.47
7.4.90.0120.00616.49
7.4.80.0090.00919.39
7.4.70.0000.01616.55
7.4.60.0180.00516.58
7.4.50.0090.00616.71
7.4.40.0030.01316.53
7.4.30.0090.00916.41
7.4.00.0030.01214.86
7.3.330.0000.00613.37
7.3.320.0000.00613.20
7.3.310.0000.00716.45
7.3.300.0000.00716.38
7.3.290.0000.00716.24
7.3.280.0090.00916.36
7.3.270.0110.00617.40
7.3.260.0160.00016.20
7.3.250.0090.00916.40
7.3.240.0070.01016.58
7.3.230.0090.00916.39
7.3.210.0130.00316.32
7.3.200.0080.00919.39
7.3.190.0180.00016.34
7.3.180.0060.00916.39
7.3.170.0100.00616.62
7.3.160.0180.00416.65
7.3.120.0110.00214.98
7.3.110.0060.00914.93
7.3.100.0120.00014.68
7.3.90.0000.01214.83
7.3.80.0050.00314.58
7.3.70.0000.00814.73
7.3.60.0070.00714.89
7.3.50.0060.00315.03
7.3.40.0060.00314.53
7.3.30.0090.00314.95
7.3.20.0070.00416.49
7.3.10.0070.01116.67
7.3.00.0090.00716.51
7.2.330.0100.01216.72
7.2.320.0110.01116.59
7.2.310.0060.00916.46
7.2.300.0130.00316.28
7.2.290.0080.01516.71
7.2.240.0070.01015.08
7.2.230.0040.01115.04
7.2.220.0040.01115.09
7.2.210.0090.00314.97
7.2.200.0140.00014.77
7.2.190.0000.00814.68
7.2.180.0070.00414.81
7.2.170.0000.01214.61
7.2.160.0030.01014.86
7.2.150.0000.00916.63
7.2.140.0100.00316.84
7.2.130.0100.00716.58
7.2.120.0110.00516.52
7.2.110.0100.00716.60
7.2.100.0080.00816.46
7.2.90.0060.00816.66
7.2.80.0090.00816.50
7.2.70.0070.00916.54
7.2.60.0060.00816.63
7.2.50.0120.00216.61
7.2.40.0120.00316.62
7.2.30.0110.00616.76
7.2.20.0050.01116.59
7.2.10.0070.00816.59
7.2.00.0080.00517.25
7.1.330.0090.00615.77
7.1.320.0000.01215.78
7.1.310.0040.00815.29
7.1.300.0090.00315.63
7.1.290.0040.00815.47
7.1.280.0000.01415.65
7.1.270.0000.00815.68
7.1.260.0100.00315.54
7.1.250.0060.01015.65
7.1.200.0060.00615.78
7.1.100.0210.00717.89
7.1.70.0030.01017.13
7.1.60.0000.02419.27
7.1.50.0120.00916.88
7.1.00.0030.07322.45
7.0.200.0030.00516.70
7.0.60.0100.07021.59
7.0.50.0070.03717.88
7.0.40.0070.08320.40
7.0.30.0270.07720.19
7.0.20.0200.06720.11
7.0.10.0030.04020.26
7.0.00.0170.07020.25
5.6.280.0000.03321.16
5.6.210.0170.07320.48
5.6.200.0100.04318.29
5.6.190.0030.06320.34
5.6.180.0230.07720.34
5.6.170.0300.07320.39
5.6.160.0070.04020.54
5.6.150.0070.07318.18
5.6.140.0070.08018.29
5.6.130.0070.08018.23
5.6.120.0030.05321.12
5.6.110.0200.07721.09
5.6.100.0100.04021.19
5.6.90.0070.08321.01
5.6.80.0000.07320.39
5.5.350.0170.07720.42
5.5.340.0100.07717.96
5.5.330.0030.07320.21
5.5.320.0370.07020.36
5.5.310.0230.03320.32
5.5.300.0000.05017.98
5.5.290.0100.04317.98
5.5.280.0000.06020.79
5.5.270.0200.06020.96
5.5.260.0130.05320.77
5.5.250.0070.08720.80
5.5.240.0070.04320.28

preferences:
48.32 ms | 400 KiB | 5 Q