3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class TestClass { public static $currentValue; public static function toValue($value) { self::$currentValue = $value; return __CLASS__; } public static function add($value) { self::$currentValue = self::$currentValue + $value; return __CLASS__; } public static function subtract($value) { self::$currentValue = self::$currentValue - $value; return __CLASS__; } public static function result() { return self::$currentValue; } } $value = TestClass::toValue(5)::add(3)::subtract(2)::add(8)::result(); var_dump($value);

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.0130.00318.29
8.3.50.0140.00717.97
8.3.40.0000.01418.67
8.3.30.0070.00718.68
8.3.20.0040.00418.60
8.3.10.0040.00423.66
8.3.00.0050.00220.64
8.2.180.0130.00725.92
8.2.170.0000.01719.01
8.2.160.0000.01422.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.00
8.2.110.0100.00020.89
8.2.100.0040.00717.73
8.2.90.0000.00817.72
8.2.80.0050.00317.97
8.2.70.0050.00318.16
8.2.60.0000.00918.09
8.2.50.0060.00318.10
8.2.40.0060.00319.24
8.2.30.0040.00419.16
8.2.20.0050.00217.93
8.2.10.0110.00018.06
8.2.00.0040.00417.46
8.1.280.0030.01425.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0140.00028.09
8.1.240.0140.00017.45
8.1.230.0040.00722.80
8.1.220.0060.00317.74
8.1.210.0000.00918.98
8.1.200.0060.00317.23
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0050.00318.43
8.1.160.0040.00418.88
8.1.150.0020.00518.75
8.1.140.0030.00322.15
8.1.130.0030.00320.12
8.1.120.0050.00317.39
8.1.110.0090.00317.42
8.1.100.0040.00417.43
8.1.90.0070.00017.29
8.1.80.0000.00717.39
8.1.70.0040.00417.41
8.1.60.0040.00417.51
8.1.50.0040.00417.48
8.1.40.0000.00817.45
8.1.30.0040.00417.67
8.1.20.0000.00717.59
8.1.10.0040.00417.46
8.1.00.0040.00417.57
8.0.300.0040.00419.64
8.0.290.0100.00016.63
8.0.280.0000.01018.31
8.0.270.0040.00416.68
8.0.260.0000.00718.40
8.0.250.0030.00316.79
8.0.240.0070.00016.86
8.0.230.0070.00016.96
8.0.220.0000.00716.81
8.0.210.0030.00316.83
8.0.200.0030.00316.77
8.0.190.0040.00816.93
8.0.180.0030.00616.78
8.0.170.0000.00816.89
8.0.160.0000.00716.88
8.0.150.0030.00316.81
8.0.140.0030.00616.80
8.0.130.0030.00313.25
8.0.120.0050.00416.88
8.0.110.0060.00316.64
8.0.100.0040.00416.80
8.0.90.0000.00716.90
8.0.80.0110.00716.83
8.0.70.0050.00516.87
8.0.60.0050.00316.68
8.0.50.0070.00016.82
8.0.30.0110.01217.05
8.0.20.0100.00817.43
8.0.10.0000.00817.02
8.0.00.0150.00816.84
7.4.330.0050.00015.55
7.4.320.0000.00616.60
7.4.300.0030.00316.52
7.4.290.0000.00716.58
7.4.280.0030.00516.60
7.4.270.0070.00016.38
7.4.260.0040.00416.48
7.4.250.0000.00716.47
7.4.240.0030.00316.66
7.4.230.0050.00216.35
7.4.220.0040.00416.63
7.4.210.0050.01116.55
7.4.200.0040.00416.59
7.4.160.0090.00816.55
7.4.140.0100.00817.86
7.4.130.0100.01416.45
7.4.120.0090.00916.46
7.4.110.0030.01316.37
7.4.100.0140.00316.32
7.4.90.0060.01216.53
7.4.80.0030.01319.39
7.4.70.0060.00916.55
7.4.60.0090.01216.49
7.4.50.0040.01116.55
7.4.40.0070.01416.63
7.4.00.0080.00814.89
7.3.330.0050.00013.34
7.3.320.0030.00313.38
7.3.310.0040.00416.39
7.3.300.0030.00316.40
7.3.290.0000.00716.32
7.3.280.0100.00616.29
7.3.260.0100.00916.49
7.3.240.0070.01216.40
7.3.230.0100.00716.60
7.3.210.0060.01116.56
7.3.200.0030.01716.55
7.3.190.0150.00816.35
7.3.180.0040.01216.37
7.3.170.0060.01216.43
7.3.160.0110.01116.30
7.3.10.0000.01216.71
7.3.00.0030.01016.57
7.2.330.0120.00616.72
7.2.320.0060.01516.68
7.2.310.0120.00616.88
7.2.300.0160.00016.68
7.2.290.0090.01316.55
7.2.130.0000.01016.96
7.2.120.0030.01116.91
7.2.110.0570.00815.68
7.2.100.0590.01015.60
7.2.90.0630.00915.79
7.2.80.0590.00515.85
7.2.70.0540.00815.70
7.2.60.0530.00815.87
7.2.50.0560.00915.75
7.2.40.0780.00515.90
7.2.30.0570.01015.74
7.2.20.0470.00515.90
7.2.10.0630.00815.88
7.2.00.0600.00615.99
7.1.250.0030.00615.94
7.1.230.1010.00613.78
7.1.220.1020.01413.47
7.1.210.1220.00314.06
7.1.200.1160.00613.64
7.1.190.1370.00913.57
7.1.180.1210.00413.29
7.1.170.1260.01213.81
7.1.160.1550.00713.61
7.1.150.0880.01013.50
7.1.140.1090.01013.55
7.1.130.1050.01313.43
7.1.120.1050.00613.60
7.1.110.1120.00313.43
7.1.100.1400.00713.67
7.1.90.1290.00713.43
7.1.80.1130.01013.70
7.1.70.1160.00713.66
7.1.60.1870.01031.82
7.1.50.1500.00331.67
7.1.40.1450.00731.53
7.1.30.1510.00331.61
7.1.20.1480.00031.70
7.1.10.1030.00313.46
7.1.00.0780.00313.75
5.6.380.0100.01013.94

preferences:
50.39 ms | 401 KiB | 5 Q