3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new class (5) { public $holder; public function __construct($classArg) { $this->holder = $classArg; } public function multiplyByNo($multiplier) { return $this->holder * $multiplier; } };

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.70.0080.00816.50
8.3.60.0180.00018.56
8.3.50.0060.01221.26
8.3.40.0110.00418.57
8.3.30.0170.00018.67
8.3.20.0040.00420.30
8.3.10.0050.00223.48
8.3.00.0050.00323.66
8.2.180.0090.00616.34
8.2.170.0140.00022.96
8.2.160.0160.00320.51
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.82
8.2.120.0030.00526.35
8.2.110.0060.00322.37
8.2.100.0090.00318.03
8.2.90.0040.00419.08
8.2.80.0000.00818.03
8.2.70.0080.00017.63
8.2.60.0080.00017.92
8.2.50.0090.00018.07
8.2.40.0060.00920.24
8.2.30.0000.00819.50
8.2.20.0070.00017.56
8.2.10.0000.00718.09
8.2.00.0070.00017.92
8.1.280.0120.00625.92
8.1.270.0040.00420.13
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0110.00019.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0060.00318.70
8.1.160.0040.00420.75
8.1.150.0070.00018.88
8.1.140.0050.00319.61
8.1.130.0020.00517.63
8.1.120.0040.00417.37
8.1.110.0000.00817.35
8.1.100.0000.00717.50
8.1.90.0000.00717.48
8.1.80.0040.00417.34
8.1.70.0040.00417.42
8.1.60.0040.00417.60
8.1.50.0030.00517.50
8.1.40.0080.00017.51
8.1.30.0080.00017.55
8.1.20.0040.00417.55
8.1.10.0000.00717.47
8.1.00.0080.00017.46
8.0.300.0050.00318.77
8.0.290.0000.00716.63
8.0.280.0000.00718.32
8.0.270.0000.00717.25
8.0.260.0000.00617.26
8.0.250.0000.00617.00
8.0.240.0060.00016.92
8.0.230.0000.00716.84
8.0.220.0000.00716.87
8.0.210.0000.00816.88
8.0.200.0030.00316.93
8.0.190.0080.00016.91
8.0.180.0000.00716.81
8.0.170.0000.00816.95
8.0.160.0000.00716.85
8.0.150.0040.00416.92
8.0.140.0000.00716.76
8.0.130.0000.00613.24
8.0.120.0000.00816.84
8.0.110.0070.00016.77
8.0.100.0070.00016.73
8.0.90.0050.00216.78
8.0.80.0000.01616.92
8.0.70.0040.00416.68
8.0.60.0030.00516.95
8.0.50.0000.00716.68
8.0.30.0130.00617.23
8.0.20.0080.00917.40
8.0.10.0000.00716.86
8.0.00.0090.01016.71
7.4.330.0000.00516.78
7.4.320.0030.00316.50
7.4.300.0000.00716.52
7.4.290.0000.00816.48
7.4.280.0060.00316.60
7.4.270.0070.00016.61
7.4.260.0040.00416.50
7.4.250.0080.00016.44
7.4.240.0000.00716.58
7.4.230.0030.00316.69
7.4.220.0120.00316.55
7.4.210.0060.00916.61
7.4.200.0050.00216.71
7.4.160.0090.00616.46
7.4.150.0070.01017.40
7.4.140.0140.00717.86
7.4.130.0100.00716.51
7.4.120.0060.01116.33
7.4.110.0100.00616.48
7.4.100.0120.00616.43
7.4.90.0150.00316.55
7.4.80.0080.01019.39
7.4.70.0120.00616.43
7.4.60.0070.01416.55
7.4.50.0110.00716.59
7.4.40.0080.00916.29
7.4.30.0070.01016.52
7.4.00.0070.00714.68
7.3.330.0020.00213.22
7.3.320.0080.00013.19
7.3.310.0070.00016.21
7.3.300.0070.00016.11
7.3.290.0090.00816.23
7.3.280.0070.01016.24
7.3.270.0100.00717.40
7.3.260.0130.01016.27
7.3.250.0110.01016.23
7.3.240.0100.00716.32
7.3.230.0050.01116.39
7.3.210.0060.01316.38
7.3.200.0130.00319.39
7.3.190.0100.01016.32
7.3.180.0130.00316.45
7.3.170.0060.01116.32
7.3.160.0040.01616.37
7.3.120.0090.00914.74
7.3.110.0060.01314.54
7.3.100.0070.01114.65
7.3.90.0040.01114.91
7.3.80.0030.00614.44
7.3.70.0060.00314.77
7.3.60.0030.01014.77
7.3.50.0030.00914.79
7.3.40.0090.00314.46
7.3.30.0060.00914.58
7.3.20.0120.00316.41
7.3.10.0070.00716.41
7.3.00.0000.01216.40
7.2.330.0070.01516.67
7.2.320.0040.01516.74
7.2.310.0030.01316.73
7.2.300.0130.00316.71
7.2.290.0130.00316.78
7.2.240.0100.01014.95
7.2.230.0110.00714.95
7.2.220.0060.00914.85
7.2.210.0110.00415.19
7.2.200.0080.00814.89
7.2.190.0060.01014.99
7.2.180.0060.00914.64
7.2.170.0040.00814.87
7.2.160.0110.00414.88
7.2.150.0030.01017.02
7.2.140.0070.00716.93
7.2.130.0030.01216.69
7.2.120.0030.01016.63
7.2.110.0070.00417.03
7.2.100.0120.00417.06
7.2.90.0000.01816.86
7.2.80.0030.01016.77
7.2.70.0080.00816.60
7.2.60.0070.00916.91
7.2.50.0030.00916.84
7.2.40.0000.00816.70
7.2.30.0070.01016.80
7.2.20.0030.00916.90
7.2.10.0090.00916.92
7.2.00.0050.01018.13
7.1.330.0070.01015.78
7.1.320.0120.00615.99
7.1.310.0070.00715.48
7.1.300.0030.01015.68
7.1.290.0030.01315.68
7.1.280.0030.01315.55
7.1.270.0110.00315.39
7.1.260.0030.00915.67
7.1.250.0000.01215.87
7.1.200.0040.00715.43
7.1.100.0070.00717.94
7.1.70.0000.00816.96
7.1.60.0110.01419.27
7.1.50.0000.01116.86
7.1.00.0070.08722.44
7.0.200.0000.00816.62
7.0.60.0270.07321.82
7.0.50.0070.03717.83
7.0.40.0070.04320.13
7.0.30.0400.04320.17
7.0.20.0230.06320.23
7.0.10.0070.08720.24
7.0.00.0030.08020.13
5.6.210.0030.04020.50
5.6.200.0000.06018.29
5.6.190.0030.05720.52
5.6.180.0470.05320.61
5.6.170.0200.08720.54
5.6.160.0030.07720.57
5.6.150.0030.06318.25
5.6.140.0000.04318.18
5.6.130.0100.03318.18
5.6.120.0130.07721.00
5.6.110.0070.04021.11
5.6.100.0130.05321.10
5.6.90.0300.06721.11
5.6.80.0070.06320.28
5.5.350.0070.07720.31
5.5.340.0070.08318.08
5.5.330.0100.08020.19
5.5.320.0570.03320.32
5.5.310.0370.07320.32
5.5.300.0030.06018.04
5.5.290.0070.08017.92
5.5.280.0000.08720.68
5.5.270.0130.07720.71
5.5.260.0130.08020.95
5.5.250.0070.08320.68
5.5.240.0230.07020.05

preferences:
57.97 ms | 401 KiB | 5 Q