3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private static $_cpt = 0 ; public function __construct() { self::$_cpt ++; } public 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.70.0110.00716.63
8.3.60.0070.00718.55
8.3.50.0140.00421.21
8.3.40.0070.00718.87
8.3.30.0090.00619.17
8.3.20.0070.00020.16
8.3.10.0040.00421.81
8.3.00.0080.00022.57
8.2.190.0040.01116.75
8.2.180.0040.01216.75
8.2.170.0160.00322.96
8.2.160.0030.01019.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.01426.16
8.2.120.0080.00019.36
8.2.110.0000.00822.25
8.2.100.0040.00819.57
8.2.90.0070.00018.98
8.2.80.0000.00817.97
8.2.70.0120.00317.38
8.2.60.0000.00818.16
8.2.50.0030.00618.07
8.2.40.0080.00020.07
8.2.30.0070.00018.18
8.2.20.0020.00517.72
8.2.10.0040.00417.76
8.2.00.0060.00317.63
8.1.280.0070.00725.92
8.1.270.0030.00522.18
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0050.00523.86
8.1.230.0080.00319.17
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0110.00017.23
8.1.190.0000.00717.41
8.1.180.0030.00618.75
8.1.170.0080.00018.50
8.1.160.0070.00022.06
8.1.150.0000.00718.49
8.1.140.0070.00017.39
8.1.130.0000.00717.82
8.1.120.0030.00317.48
8.1.110.0000.00817.36
8.1.100.0040.00417.44
8.1.90.0040.00417.34
8.1.80.0040.00417.43
8.1.70.0030.00317.40
8.1.60.0000.00817.44
8.1.50.0040.00417.48
8.1.40.0070.00317.40
8.1.30.0030.00617.66
8.1.20.0040.00417.59
8.1.10.0040.00417.55
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0000.00718.40
8.0.270.0030.00317.13
8.0.260.0060.00016.83
8.0.250.0050.00216.88
8.0.240.0040.00416.86
8.0.230.0030.00316.87
8.0.220.0030.00316.93
8.0.210.0000.00816.86
8.0.200.0000.00617.03
8.0.190.0040.00416.96
8.0.180.0000.00816.85
8.0.170.0030.00616.86
8.0.160.0000.00716.89
8.0.150.0030.00316.89
8.0.140.0050.00316.84
8.0.130.0030.00313.30
8.0.120.0030.00516.89
8.0.110.0080.00016.86
8.0.100.0000.00717.01
8.0.90.0050.00316.88
8.0.80.0080.00816.90
8.0.70.0000.00716.77
8.0.60.0040.00416.71
8.0.50.0000.00816.93
8.0.30.0060.01617.23
8.0.20.0060.01217.40
8.0.10.0000.00816.89
8.0.00.0120.01016.59
7.4.330.0000.00515.00
7.4.320.0030.00316.42
7.4.300.0000.00716.58
7.4.290.0000.00716.66
7.4.280.0030.00316.60
7.4.270.0030.00416.52
7.4.260.0000.00716.50
7.4.250.0050.00316.49
7.4.240.0040.00316.54
7.4.230.0000.00716.37
7.4.220.0100.00616.71
7.4.210.0070.01016.64
7.4.200.0040.00416.59
7.4.190.0020.00516.79
7.4.160.0080.00816.87
7.4.150.0130.00617.40
7.4.140.0120.00617.86
7.4.130.0130.00516.49
7.4.120.0100.01116.46
7.4.110.0100.00616.42
7.4.100.0120.01216.56
7.4.90.0060.01216.54
7.4.80.0050.01819.39
7.4.70.0100.01416.40
7.4.60.0040.01116.56
7.4.50.0080.00016.39
7.4.40.0040.00722.77
7.4.30.0040.01416.54
7.4.00.0030.01314.95
7.3.330.0050.00013.29
7.3.320.0000.00513.36
7.3.310.0050.00316.40
7.3.300.0030.00316.36
7.3.290.0070.00716.38
7.3.280.0050.01116.34
7.3.270.0150.00717.40
7.3.260.0060.01116.31
7.3.250.0060.01216.45
7.3.240.0130.00316.34
7.3.230.0130.00316.57
7.3.210.0180.00016.32
7.3.200.0130.01019.39
7.3.190.0120.00916.37
7.3.180.0080.00816.59
7.3.170.0000.01616.56
7.3.160.0090.00616.50
7.3.120.0120.00014.84
7.3.10.0020.01116.48
7.3.00.0080.00616.46
7.2.330.0030.01316.85
7.2.320.0070.01016.61
7.2.310.0090.01216.39
7.2.300.0130.00316.75
7.2.290.0130.00716.59
7.2.130.0070.00616.88
7.2.120.0050.00916.76
7.2.110.0050.00816.94
7.2.100.0080.00816.80
7.2.90.0110.00316.88
7.2.80.0070.00717.12
7.2.70.0050.00817.02
7.2.60.0090.00817.03
7.2.50.0150.00216.63
7.2.40.0050.00716.71
7.2.30.0080.00316.75
7.2.20.0120.00216.92
7.2.10.0050.00816.72
7.2.00.0040.01017.81
7.1.250.0020.00715.59
7.1.200.0090.00315.64
7.1.100.0040.00818.04
7.1.70.0090.00216.80
7.1.60.0110.01419.82
7.1.50.0070.01416.57
7.1.00.0000.07322.45
7.0.200.0070.00316.66
7.0.140.0100.06722.15
7.0.60.0100.08019.87
7.0.50.0100.06017.82
7.0.40.0070.09320.25
7.0.30.0270.04320.17
7.0.20.0200.05320.22
7.0.10.0300.06720.07
7.0.00.0070.04320.19
5.6.280.0100.06321.13
5.6.210.0070.08020.61
5.6.200.0030.04718.29
5.6.190.0030.09020.46
5.6.180.1770.04720.50
5.6.170.0270.08020.47
5.6.160.0070.05320.55
5.6.150.0070.03718.21
5.6.140.0070.07718.21
5.6.130.0130.07318.27
5.6.120.0030.08721.00
5.6.110.0200.07321.11
5.6.100.0030.08720.94
5.6.90.0070.08720.96
5.6.80.0000.07320.38
5.6.70.0230.08020.35
5.5.350.0030.08720.47
5.5.340.0070.03717.95
5.5.330.0170.07720.23
5.5.320.0230.05720.38
5.5.310.0430.05020.23
5.5.300.0070.08017.95
5.5.290.0000.08717.97
5.5.280.0030.04320.89
5.5.270.0030.05720.73
5.5.260.0070.08720.88
5.5.250.0100.08320.69
5.5.240.0070.07320.16
5.4.450.0500.06319.30
5.4.440.0700.08019.56
5.4.430.0100.05319.60
5.4.420.1070.05319.43
5.4.410.0770.05019.35
5.4.400.0600.00018.82
5.4.390.1530.00018.50
5.4.380.0270.05318.50
5.4.370.0230.05718.62
5.4.360.0170.05018.77
5.4.350.0170.05718.62
5.4.340.0330.04318.63
5.4.320.0100.04212.50
5.4.310.0100.03612.50
5.4.300.0050.04412.50
5.4.290.0070.05012.50
5.4.280.0070.04912.40
5.4.270.0070.04712.40
5.4.260.0170.06318.76
5.4.250.0200.06018.78
5.4.240.0170.04719.04
5.4.230.0030.05718.94
5.4.220.0200.07018.94
5.4.210.0070.06318.79
5.4.200.0070.05718.89
5.4.190.0170.05018.78
5.4.180.0130.04718.88
5.4.170.0230.03718.78
5.4.160.0070.05018.93
5.4.150.0130.04718.92
5.4.140.0030.05316.33
5.4.130.0070.04716.36
5.4.120.0030.05316.59
5.4.110.0070.05016.45
5.4.100.0070.04716.45
5.4.90.0070.05016.39
5.4.80.0130.04316.51
5.4.70.0100.06016.54
5.4.60.0130.04316.39
5.4.50.0130.05016.44
5.4.40.0100.05716.39
5.4.30.0130.04716.33
5.4.20.0200.03316.33
5.4.10.0070.05016.60
5.4.00.0070.05015.80
5.3.290.0050.04612.80
5.3.280.0100.05314.62
5.3.270.0000.06014.70
5.3.260.0070.05314.61
5.3.250.0130.04714.59
5.3.240.0000.05714.69
5.3.230.0070.05014.82
5.3.220.0100.04714.41
5.3.210.0100.04714.79
5.3.200.0030.05314.63
5.3.190.0100.05014.73
5.3.180.0130.04714.64
5.3.170.0100.04714.57
5.3.160.0070.05714.65
5.3.150.0170.04314.79
5.3.140.0000.05314.74
5.3.130.0130.06014.63
5.3.120.0170.04314.38
5.3.110.0070.05014.58
5.3.100.0100.07314.13
5.3.90.0030.05014.04
5.3.80.0100.04714.11
5.3.70.0070.04714.24
5.3.60.0030.05314.18
5.3.50.0100.05314.18
5.3.40.0070.04713.93
5.3.30.0100.04313.99
5.3.20.0030.05013.88
5.3.10.0000.06013.73
5.3.00.0030.05013.71
5.2.170.0070.04011.23
5.2.160.0030.04011.36
5.2.150.0070.04010.98
5.2.140.0070.04011.18
5.2.130.0130.03011.19
5.2.120.0100.03711.21
5.2.110.0100.04011.17
5.2.100.0030.04011.19
5.2.90.0070.04011.19
5.2.80.0070.04011.26
5.2.70.0030.04311.07
5.2.60.0070.03711.05
5.2.50.0100.03711.18
5.2.40.0030.04010.97
5.2.30.0030.06011.06
5.2.20.0100.04311.04
5.2.10.0130.04310.94
5.2.00.0000.06310.84
5.1.60.0030.05310.06
5.1.50.0070.03310.09
5.1.40.0070.0309.97
5.1.30.0030.03710.29
5.1.20.0070.03310.31
5.1.10.0030.04010.13
5.1.00.0030.03310.02
5.0.50.0170.0178.53
5.0.40.0030.0278.56
5.0.30.0070.0408.24
5.0.20.0070.0308.17
5.0.10.0030.0308.32
5.0.00.0070.0478.35
4.4.90.0000.0237.22
4.4.80.0000.0237.22
4.4.70.0000.0237.22
4.4.60.0000.0237.22
4.4.50.0070.0307.22
4.4.40.0030.0337.22
4.4.30.0030.0307.22
4.4.20.0030.0207.22
4.4.10.0030.0207.22
4.4.00.0000.0337.22
4.3.110.0130.0137.22
4.3.100.0030.0307.22
4.3.90.0030.0177.22
4.3.80.0030.0337.22
4.3.70.0130.0107.22
4.3.60.0030.0207.22
4.3.50.0000.0237.22
4.3.40.0100.0277.22
4.3.30.0030.0207.22
4.3.20.0030.0207.22
4.3.10.0000.0207.22
4.3.00.0170.0206.95

preferences:
55.08 ms | 401 KiB | 5 Q