3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private static $_cpt = 0 ; public function __construct() { self::$_cpt ++; } public static function compt() { return self::$_cpt; } } $insta1 = new test(); // Un $insta2 = new test(); // 2 $insta3 = new test(); // 2 $insta4 = new test(); // 2 echo test::compt();

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.0110.00318.52
8.3.50.0100.01221.20
8.3.40.0060.00918.67
8.3.30.0100.00319.21
8.3.20.0000.00820.30
8.3.10.0000.00822.06
8.3.00.0040.00422.43
8.2.180.0110.00716.32
8.2.170.0000.01522.96
8.2.160.0100.00319.07
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.01026.16
8.2.120.0100.00018.91
8.2.110.0030.00622.25
8.2.100.0120.00019.57
8.2.90.0000.00819.23
8.2.80.0040.00417.97
8.2.70.0090.00317.38
8.2.60.0030.00517.93
8.2.50.0080.00018.07
8.2.40.0050.00518.09
8.2.30.0000.00718.05
8.2.20.0040.00417.61
8.2.10.0040.00417.58
8.2.00.0040.00417.75
8.1.280.0040.01125.92
8.1.270.0040.00422.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.66
8.1.230.0030.00719.13
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.30
8.1.180.0030.00518.66
8.1.170.0040.00418.52
8.1.160.0070.00022.15
8.1.150.0050.00318.59
8.1.140.0040.00417.37
8.1.130.0000.00717.89
8.1.120.0030.00317.35
8.1.110.0050.00317.39
8.1.100.0000.00717.45
8.1.90.0040.00417.42
8.1.80.0000.00717.41
8.1.70.0050.00217.36
8.1.60.0040.00417.57
8.1.50.0060.00317.51
8.1.40.0040.00417.56
8.1.30.0080.00017.68
8.1.20.0050.00317.71
8.1.10.0060.00317.48
8.1.00.0080.00017.50
8.0.300.0050.00318.77
8.0.290.0040.00417.18
8.0.280.0050.00318.49
8.0.270.0030.00517.25
8.0.260.0070.00016.71
8.0.250.0070.00016.92
8.0.240.0020.00516.83
8.0.230.0030.00516.78
8.0.220.0030.00316.67
8.0.210.0070.00016.84
8.0.200.0030.00316.79
8.0.190.0040.00416.82
8.0.180.0040.00416.75
8.0.170.0030.00516.84
8.0.160.0050.00216.71
8.0.150.0000.00816.75
8.0.140.0030.00416.81
8.0.130.0060.00013.30
8.0.120.0040.00416.74
8.0.110.0020.00516.73
8.0.100.0000.00716.78
8.0.90.0040.00416.74
8.0.80.0080.00816.80
8.0.70.0040.00416.69
8.0.60.0000.00716.65
8.0.50.0050.00316.90
8.0.30.0120.00617.01
8.0.20.0130.00517.40
8.0.10.0050.00216.77
8.0.00.0050.01316.58
7.4.330.0050.00015.00
7.4.320.0030.00316.56
7.4.300.0060.00016.52
7.4.290.0070.00016.61
7.4.280.0070.00016.52
7.4.270.0030.00316.63
7.4.260.0070.00016.61
7.4.250.0040.00416.58
7.4.240.0010.00616.55
7.4.230.0070.00016.63
7.4.220.0040.01116.49
7.4.210.0080.00916.67
7.4.200.0040.00416.72
7.4.190.0030.00516.68
7.4.160.0040.01116.56
7.4.150.0110.00717.40
7.4.140.0080.01017.86
7.4.130.0100.00916.45
7.4.120.0120.00616.34
7.4.110.0070.01016.65
7.4.100.0120.01216.43
7.4.90.0120.01216.25
7.4.80.0150.00619.39
7.4.70.0100.01016.54
7.4.60.0060.00916.58
7.4.50.0060.00316.28
7.4.40.0040.01522.77
7.4.30.0040.01216.54
7.4.00.0030.01014.70
7.3.330.0000.00613.30
7.3.320.0050.00013.12
7.3.310.0050.00316.34
7.3.300.0000.00616.25
7.3.290.0110.00416.32
7.3.280.0110.00516.31
7.3.270.0130.00317.40
7.3.260.0100.00716.49
7.3.250.0150.00416.42
7.3.240.0060.01016.25
7.3.230.0130.00316.50
7.3.210.0100.00716.21
7.3.200.0110.00519.39
7.3.190.0110.01116.28
7.3.180.0090.00616.62
7.3.170.0060.00916.53
7.3.160.0060.00916.53
7.3.120.0070.01114.75
7.2.330.0030.01416.64
7.2.320.0100.01016.52
7.2.310.0110.01116.72
7.2.300.0030.01416.61
7.2.290.0120.00916.86
7.2.60.0070.00716.68
7.2.50.0060.00916.98
7.1.200.0000.00915.45
7.1.70.0030.00517.18
7.1.60.0110.00016.86
7.1.50.0100.01016.87
7.1.00.0070.07022.40
7.0.200.0060.01116.64
7.0.140.0030.07022.21
7.0.60.0170.06719.91
7.0.50.0000.05317.88
7.0.40.0000.06320.25
7.0.30.0330.07020.30
7.0.20.0270.08020.12
7.0.10.0300.08020.23
7.0.00.0130.04720.23
5.6.280.0070.07020.90
5.6.210.0070.09020.75
5.6.200.0030.08318.28
5.6.190.0000.09020.42
5.6.180.4130.05020.61
5.6.170.0170.04320.55
5.6.160.0070.07320.61
5.6.150.0000.04718.29
5.6.140.0070.08318.28
5.6.130.0030.04718.26
5.6.120.0100.08321.11
5.6.110.0000.04320.95
5.6.100.0070.03720.98
5.6.90.0100.08320.94
5.6.80.0200.06720.41
5.6.70.0330.07720.51
5.5.350.0100.07720.43
5.5.340.0030.06717.96
5.5.330.0100.08320.54
5.5.320.0200.08720.35
5.5.310.0230.04020.34
5.5.300.0100.06317.94
5.5.290.0030.08718.01
5.5.280.0200.07720.88
5.5.270.0100.05720.65
5.5.260.0070.08720.69
5.5.250.0130.07020.62
5.5.240.0030.05720.36
5.4.450.0730.06019.68
5.4.440.0970.06019.38
5.4.430.0530.06019.54
5.4.420.0700.04719.38
5.4.410.0770.05719.18
5.4.400.0900.00018.73
5.4.390.1030.00018.73
5.4.380.0300.05018.57
5.4.370.0200.05318.57
5.4.360.0230.05018.70
5.4.350.0230.06018.74
5.4.340.0230.05018.78
5.4.320.0060.04312.50
5.4.310.0060.04312.50
5.4.300.0090.03612.50
5.4.290.0060.04012.50
5.4.280.0060.03512.40
5.4.270.0080.03812.40
5.4.260.0070.05718.79
5.4.250.0130.04718.79
5.4.240.0070.06319.07
5.4.230.0100.06319.07
5.4.220.0100.05718.93
5.4.210.0100.05019.07
5.4.200.0170.04318.99
5.4.190.0030.06318.91
5.4.180.0070.05318.78
5.4.170.0170.06718.98
5.4.160.0100.06318.98
5.4.150.0200.07018.77
5.4.140.0030.06316.45
5.4.130.0130.04016.36
5.4.120.0100.05016.38
5.4.110.0270.05316.56
5.4.100.0130.05716.54
5.4.90.0100.05016.36
5.4.80.0070.05716.36
5.4.70.0130.04716.47
5.4.60.0100.04716.46
5.4.50.0070.04716.32
5.4.40.0100.04716.51
5.4.30.0000.05316.50
5.4.20.0170.03716.33
5.4.10.0030.05716.36
5.4.00.0130.04315.92
5.3.290.0070.04712.80
5.3.280.0030.05714.77
5.3.270.0130.06714.71
5.3.260.0070.07014.69
5.3.250.0130.04714.44
5.3.240.0000.05714.52
5.3.230.0130.04314.57
5.3.220.0200.04014.58
5.3.210.0030.07714.64
5.3.200.0100.05014.66
5.3.190.0200.05714.66
5.3.180.0170.05314.63
5.3.170.0030.08014.63
5.3.160.0070.05014.55
5.3.150.0070.05014.55
5.3.140.0230.04314.64
5.3.130.0070.06714.65
5.3.120.0130.06314.77
5.3.110.0100.05014.54
5.3.100.0130.04314.14
5.3.90.0000.05714.24
5.3.80.0070.05014.00
5.3.70.0130.04314.20
5.3.60.0070.04714.08
5.3.50.0030.05314.18
5.3.40.0030.05014.18
5.3.30.0170.03714.02
5.3.20.0100.04713.79
5.3.10.0030.05313.73
5.3.00.0100.05313.80
5.2.170.0030.04711.21
5.2.160.0000.04711.22
5.2.150.0100.05011.05
5.2.140.0070.04311.23
5.2.130.0100.03311.07
5.2.120.0030.04311.17
5.2.110.0070.03711.01
5.2.100.0000.04311.09
5.2.90.0030.04711.19
5.2.80.0000.04311.28
5.2.70.0030.04310.93
5.2.60.0000.04711.27
5.2.50.0030.04311.11
5.2.40.0070.05311.22
5.2.30.0100.03310.81
5.2.20.0130.03011.04
5.2.10.0030.04010.85
5.2.00.0130.03010.82
5.1.60.0070.03710.04
5.1.50.0030.0379.91
5.1.40.0030.0379.96
5.1.30.0100.03310.51
5.1.20.0070.04710.33
5.1.10.0030.03310.07
5.1.00.0100.03310.30
5.0.50.0070.0378.53
5.0.40.0000.0308.36
5.0.30.0030.0408.27
5.0.20.0100.0208.27
5.0.10.0070.0278.21
5.0.00.0100.0338.20
4.4.90.0000.0237.21
4.4.80.0130.0107.21
4.4.70.0030.0307.21
4.4.60.0070.0237.21
4.4.50.0000.0237.21
4.4.40.0100.0307.21
4.4.30.0070.0177.21
4.4.20.0030.0207.21
4.4.10.0030.0207.21
4.4.00.0070.0277.21
4.3.110.0030.0207.21
4.3.100.0000.0237.21
4.3.90.0070.0177.21
4.3.80.0000.0377.21
4.3.70.0000.0207.21
4.3.60.0030.0237.21
4.3.50.0030.0207.21
4.3.40.0030.0337.21
4.3.30.0000.0237.21
4.3.20.0000.0237.21
4.3.10.0000.0237.21
4.3.00.0100.0207.17

preferences:
47.07 ms | 401 KiB | 5 Q