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.40.0090.00918.60
8.3.30.0140.00018.83
8.3.20.0040.00420.30
8.3.10.0040.00422.04
8.3.00.0040.00423.31
8.2.170.0100.00722.96
8.2.160.0140.00020.35
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0150.00320.80
8.2.110.0000.00920.52
8.2.100.0060.00617.66
8.2.90.0050.00220.59
8.2.80.0000.00818.05
8.2.70.0080.00018.05
8.2.60.0000.00818.22
8.2.50.0000.00918.10
8.2.40.0070.00020.54
8.2.30.0080.00019.31
8.2.20.0000.00718.31
8.2.10.0000.00718.10
8.2.00.0040.00418.13
8.1.270.0070.00022.10
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00920.88
8.1.230.0080.00320.97
8.1.220.0050.00317.79
8.1.210.0000.00819.04
8.1.200.0040.00717.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0040.00418.90
8.1.150.0040.00420.09
8.1.140.0040.00417.59
8.1.130.0000.00719.03
8.1.120.0040.00417.39
8.1.110.0000.00817.34
8.1.100.0000.00817.45
8.1.90.0040.00417.46
8.1.80.0030.00617.49
8.1.70.0040.00417.34
8.1.60.0060.00317.46
8.1.50.0050.00317.49
8.1.40.0000.00817.41
8.1.30.0000.00917.66
8.1.20.0040.00417.51
8.1.10.0040.00417.61
8.1.00.0000.00817.44
8.0.300.0040.00419.97
8.0.290.0060.00316.75
8.0.280.0030.00318.32
8.0.270.0040.00417.21
8.0.260.0030.00318.43
8.0.250.0070.00016.95
8.0.240.0030.00316.83
8.0.230.0030.00316.88
8.0.220.0000.00716.88
8.0.210.0030.00416.92
8.0.200.0000.00616.96
8.0.190.0060.00316.72
8.0.180.0040.00416.92
8.0.170.0030.00316.83
8.0.160.0080.00016.96
8.0.150.0070.00016.79
8.0.140.0040.00416.75
8.0.130.0030.00313.32
8.0.120.0070.00016.86
8.0.110.0050.00216.89
8.0.100.0070.00016.88
8.0.90.0050.00316.73
8.0.80.0080.00616.85
8.0.70.0040.00416.84
8.0.60.0040.00417.01
8.0.50.0000.00716.77
8.0.30.0120.00616.87
8.0.20.0080.01417.40
8.0.10.0000.00717.09
8.0.00.0090.00916.59
7.4.330.0050.00015.55
7.4.320.0000.00716.57
7.4.300.0080.00016.60
7.4.290.0000.00816.52
7.4.280.0040.00416.59
7.4.270.0000.00716.59
7.4.260.0070.00016.46
7.4.250.0000.00816.56
7.4.240.0040.00416.57
7.4.230.0040.00416.44
7.4.220.0030.01516.58
7.4.210.0130.00716.52
7.4.200.0020.00516.61
7.4.160.0120.00816.39
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0140.00916.64
7.4.120.0110.01016.50
7.4.110.0090.00916.55
7.4.100.0080.01216.43
7.4.90.0090.01216.43
7.4.80.0060.01119.39
7.4.70.0070.01516.41
7.4.60.0160.00016.36
7.4.50.0060.00916.48
7.4.40.0110.01116.57
7.4.30.0150.02216.41
7.4.00.0030.01015.11
7.3.330.0050.00013.36
7.3.320.0000.00513.37
7.3.310.0000.00616.39
7.3.300.0080.00016.30
7.3.290.0030.01016.34
7.3.280.0060.01016.36
7.3.270.0110.00717.40
7.3.260.0100.00816.63
7.3.250.0120.00816.47
7.3.240.0060.01016.39
7.3.230.0060.01116.45
7.3.210.0090.01316.35
7.3.200.0120.00916.63
7.3.190.0080.00816.31
7.3.180.0110.00616.27
7.3.170.0180.00016.65
7.3.160.0060.00916.41
7.2.330.0150.00316.51
7.2.320.0070.01116.71
7.2.310.0100.01316.41
7.2.300.0090.00916.48
7.2.290.0040.01216.46
7.2.60.0080.00316.63
7.1.200.0060.00615.90
7.1.100.0980.00916.34
7.1.90.1110.01316.19
7.1.80.1080.01016.45
7.1.70.1040.00315.20
7.1.60.1300.01033.25
7.1.50.1660.01332.90
7.1.40.1150.01632.63
7.1.30.1480.01732.69
7.1.20.1240.01332.71
7.1.10.1140.01014.78
7.1.00.1090.00915.06
7.0.240.0720.00616.01
7.0.230.1120.01215.85
7.0.220.1080.00315.72
7.0.210.1080.01014.84
7.0.200.2130.01314.80
7.0.190.1440.01314.94
7.0.180.1130.00914.28
7.0.170.1220.01014.17
7.0.160.1200.01414.48
7.0.150.1110.01014.30
7.0.140.1150.00314.33
7.0.130.1080.00614.73
7.0.120.0860.00714.45
7.0.110.0900.00314.47
7.0.100.0850.00614.41
7.0.90.0970.00614.34
7.0.80.0820.00814.74
7.0.70.0820.00714.61
7.0.60.0850.00714.29
7.0.50.0860.01214.41
7.0.40.1050.01414.33
7.0.30.1140.01014.37
7.0.20.1090.00714.73
7.0.10.1130.00714.49
7.0.00.1180.01014.43

preferences:
68.34 ms | 400 KiB | 5 Q