3v4l.org

run code in 300+ PHP versions simultaneously
<?php function creator($var) { return new class($var) { private static $var; function __construct($var) { static::$var = $var; } function __debugInfo() { return [ "\0*\0var" => static::$var, ]; } }; } $a = creator('A'); $b = creator('B'); var_dump($a, $b, $a == $b);

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.0150.00316.50
8.3.50.0130.00316.63
8.3.40.0140.00418.66
8.3.30.0070.00718.81
8.3.20.0040.00420.20
8.3.10.0080.00022.09
8.3.00.0080.00023.67
8.2.180.0190.00018.04
8.2.170.0120.00322.96
8.2.160.0100.00320.36
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00422.22
8.2.120.0080.00026.35
8.2.110.0000.01122.26
8.2.100.0070.00617.79
8.2.90.0030.00619.35
8.2.80.0040.00417.97
8.2.70.0060.00317.62
8.2.60.0030.00517.93
8.2.50.0000.00818.22
8.2.40.0050.00520.55
8.2.30.0040.00419.19
8.2.20.0000.00818.29
8.2.10.0070.00018.19
8.2.00.0000.00718.13
8.1.280.0100.00725.92
8.1.270.0080.00022.13
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.96
8.1.230.0080.00317.78
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00517.35
8.1.180.0070.00418.10
8.1.170.0000.00818.61
8.1.160.0030.00618.90
8.1.150.0050.00220.13
8.1.140.0080.00017.37
8.1.130.0000.00819.06
8.1.120.0000.00717.45
8.1.110.0000.00717.35
8.1.100.0050.00317.43
8.1.90.0040.00417.41
8.1.80.0050.00217.45
8.1.70.0000.00717.35
8.1.60.0000.00817.61
8.1.50.0040.00417.58
8.1.40.0000.00717.46
8.1.30.0030.00617.55
8.1.20.0000.00717.68
8.1.10.0040.00417.53
8.1.00.0050.00317.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0030.00317.17
8.0.260.0060.00318.50
8.0.250.0030.00616.95
8.0.240.0030.00316.86
8.0.230.0060.00316.85
8.0.220.0000.00716.80
8.0.210.0000.00816.80
8.0.200.0030.00316.95
8.0.190.0100.00017.04
8.0.180.0020.00516.94
8.0.170.0000.00716.81
8.0.160.0000.00816.81
8.0.150.0020.00516.78
8.0.140.0000.00716.76
8.0.130.0050.00013.26
8.0.120.0030.00516.88
8.0.110.0080.00016.92
8.0.100.0050.00316.95
8.0.90.0040.00416.96
8.0.80.0000.01516.94
8.0.70.0000.00716.95
8.0.60.0050.00216.92
8.0.50.0070.00016.86
8.0.30.0120.00517.08
8.0.20.0110.00817.41
8.0.10.0000.00817.00
8.0.00.0140.00716.70
7.4.330.0050.00015.55
7.4.320.0000.00616.52
7.4.300.0000.00616.55
7.4.290.0020.00516.58
7.4.280.0040.00416.50
7.4.270.0030.00316.37
7.4.260.0030.00316.57
7.4.250.0000.00716.43
7.4.240.0030.00316.41
7.4.230.0030.00316.40
7.4.220.0100.00916.66
7.4.210.0090.00616.47
7.4.200.0000.00716.54
7.4.160.0080.00916.48
7.4.150.0150.00317.40
7.4.140.0160.00517.86
7.4.130.0110.00916.48
7.4.120.0090.01016.53
7.4.110.0140.00716.48
7.4.100.0110.00716.66
7.4.90.0130.00316.48
7.4.80.0070.01119.39
7.4.70.0110.01016.48
7.4.60.0040.01416.38
7.4.50.0110.00616.71
7.4.40.0130.00616.61
7.4.30.0050.01416.39
7.4.00.0050.01214.73
7.3.330.0000.00613.41
7.3.320.0030.00313.36
7.3.310.0070.00016.39
7.3.300.0070.00016.41
7.3.290.0070.00816.34
7.3.280.0100.00716.37
7.3.270.0110.00817.40
7.3.260.0060.01316.40
7.3.250.0070.01016.41
7.3.240.0100.00716.47
7.3.230.0120.00616.57
7.3.210.0110.00716.34
7.3.200.0120.00416.45
7.3.190.0120.00416.35
7.3.180.0080.00816.55
7.3.170.0080.00816.58
7.3.160.0100.00716.42
7.3.120.0070.01014.93
7.3.110.0090.01014.60
7.3.100.0040.00814.90
7.3.90.0070.01014.84
7.3.80.0030.01014.81
7.3.70.0030.00714.53
7.3.60.0070.00714.86
7.3.50.0110.00314.69
7.3.40.0110.00414.77
7.3.30.0060.00914.91
7.3.20.0100.00716.65
7.3.10.0070.00716.70
7.3.00.0070.00716.80
7.2.330.0070.01116.62
7.2.320.0090.01316.39
7.2.310.0090.01716.34
7.2.300.0060.01016.75
7.2.290.0130.00316.39
7.2.250.0110.00714.92
7.2.240.0120.00914.82
7.2.230.0030.01114.97
7.2.220.0110.00415.23
7.2.210.0030.01315.13
7.2.200.0070.00715.16
7.2.190.0100.00315.00
7.2.180.0040.01215.00
7.2.170.0000.01214.99
7.2.60.0060.00716.70
7.1.330.0030.01015.80
7.1.320.0060.00315.87
7.1.310.0070.00715.42
7.1.300.0070.01015.67
7.1.290.0030.00615.67
7.1.280.0000.01415.61
7.1.270.0070.00415.86
7.1.260.0030.01015.84
7.1.200.0090.00615.70
7.1.100.1020.01216.06
7.1.90.1790.01616.10
7.1.80.0730.01316.46
7.1.70.0810.01515.27
7.1.60.1240.00732.95
7.1.50.0670.01333.13
7.1.40.0970.01032.52
7.1.30.1020.00732.67
7.1.20.1040.01332.75
7.1.10.0900.01414.57
7.1.00.0830.00714.70
7.0.240.1060.01015.51
7.0.230.1050.01315.81
7.0.220.0910.00715.99
7.0.210.0730.00914.82
7.0.200.0660.00314.91
7.0.190.0800.01215.03
7.0.180.0910.00614.34
7.0.170.0950.01214.31
7.0.160.0810.01414.54
7.0.150.0840.00714.32
7.0.140.0900.00314.52
7.0.130.0900.01214.59
7.0.120.1010.01614.79
7.0.110.0980.02014.52
7.0.100.1120.01314.50
7.0.90.0850.01014.39
7.0.80.1350.01414.40
7.0.70.0770.01014.21
7.0.60.0800.01514.11
7.0.50.0800.01514.46
7.0.40.0760.00714.88
7.0.30.0820.00714.70
7.0.20.0800.01014.53
7.0.10.0990.01614.82
7.0.00.0940.01314.53

preferences:
57.77 ms | 401 KiB | 5 Q