3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private static $_cpt = 0 ; public function compt() { self::$_cpt ++; 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.0120.00318.65
8.3.50.0140.00017.90
8.3.40.0140.00018.66
8.3.30.0080.00619.12
8.3.20.0050.00320.38
8.3.10.0040.00422.08
8.3.00.0070.00022.33
8.2.170.0070.00718.90
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00819.23
8.2.110.0100.00020.43
8.2.100.0040.00817.78
8.2.90.0050.00319.08
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0080.00418.07
8.2.40.0040.00419.55
8.2.30.0000.00717.99
8.2.20.0000.00917.66
8.2.10.0050.00317.69
8.2.00.0040.00417.81
8.1.270.0070.00722.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.92
8.1.230.0060.00620.29
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0000.00818.61
8.1.170.0000.00818.59
8.1.160.0070.00022.05
8.1.150.0040.00418.54
8.1.140.0060.00617.35
8.1.130.0030.00517.83
8.1.120.0030.00317.32
8.1.110.0040.00417.29
8.1.100.0040.00317.43
8.1.90.0040.00417.38
8.1.80.0000.00817.32
8.1.70.0030.00317.27
8.1.60.0040.00417.61
8.1.50.0030.00617.50
8.1.40.0000.00717.54
8.1.30.0060.00317.64
8.1.20.0000.00917.54
8.1.10.0050.00317.57
8.1.00.0000.00717.52
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.38
8.0.270.0000.00717.26
8.0.260.0000.00616.88
8.0.250.0030.00316.97
8.0.240.0030.00417.02
8.0.230.0030.00316.94
8.0.220.0030.00316.88
8.0.210.0000.00816.75
8.0.200.0070.00017.00
8.0.190.0000.00717.00
8.0.180.0000.00716.97
8.0.170.0040.00416.84
8.0.160.0070.00016.80
8.0.150.0000.00816.85
8.0.140.0000.00716.76
8.0.130.0060.00013.36
8.0.120.0040.00416.83
8.0.110.0050.00316.79
8.0.100.0040.00416.78
8.0.90.0000.00716.79
8.0.80.0100.01016.83
8.0.70.0040.00416.96
8.0.60.0050.00316.91
8.0.50.0050.00316.91
8.0.30.0090.01217.03
8.0.20.0090.01117.40
8.0.10.0070.00017.08
8.0.00.0090.00916.55
7.4.330.0000.00515.06
7.4.320.0040.00416.52
7.4.300.0000.00616.59
7.4.290.0000.00716.50
7.4.280.0040.00416.52
7.4.270.0030.00316.48
7.4.260.0030.00316.56
7.4.250.0080.00016.61
7.4.240.0030.00316.52
7.4.230.0040.00416.70
7.4.220.0060.00916.62
7.4.210.0050.01016.53
7.4.200.0030.00316.56
7.4.190.0000.00716.76
7.4.160.0080.00816.57
7.4.150.0100.00917.40
7.4.140.0140.01017.86
7.4.130.0020.01616.52
7.4.120.0090.00916.52
7.4.110.0130.00316.62
7.4.100.0120.00916.48
7.4.90.0090.00916.43
7.4.80.0100.01019.39
7.4.70.0090.00916.37
7.4.60.0140.00316.63
7.4.50.0030.00616.45
7.4.40.0070.00722.77
7.4.30.0100.00716.61
7.4.10.0110.00715.00
7.4.00.0070.00714.94
7.3.330.0030.00313.38
7.3.320.0000.00513.29
7.3.310.0030.00316.37
7.3.300.0030.00316.41
7.3.290.0080.00616.26
7.3.280.0080.01016.39
7.3.270.0160.00017.40
7.3.260.0100.00616.66
7.3.250.0090.00816.38
7.3.240.0060.01016.37
7.3.230.0070.01016.55
7.3.210.0120.00616.54
7.3.200.0070.01019.39
7.3.190.0070.01016.38
7.3.180.0090.00616.30
7.3.170.0170.00616.35
7.3.160.0120.00416.28
7.3.130.0110.00714.75
7.3.120.0060.00814.88
7.3.110.0080.01014.90
7.3.100.0070.00714.58
7.3.90.0090.00714.86
7.3.80.0000.01114.52
7.3.70.0050.00514.89
7.3.60.0070.01114.70
7.3.50.0080.00814.51
7.3.40.0050.00814.77
7.3.30.0040.00614.69
7.3.20.0060.00616.48
7.3.10.0050.01116.59
7.3.00.0040.01016.53
7.2.330.0120.00616.55
7.2.320.0100.00716.82
7.2.310.0030.01516.46
7.2.300.0130.00316.56
7.2.290.0110.01216.35
7.2.260.0070.01014.81
7.2.250.0030.01514.85
7.2.240.0060.00714.87
7.2.230.0030.00914.93
7.2.220.0070.00715.03
7.2.210.0060.01015.27
7.2.200.0100.00314.75
7.2.190.0080.01114.97
7.2.180.0070.00515.00
7.2.170.0060.01115.07
7.2.160.0060.01015.02
7.2.150.0060.00517.04
7.2.140.0030.01016.91
7.2.130.0030.01016.80
7.2.120.0080.00816.97
7.2.110.0000.01617.02
7.2.100.0050.01216.75
7.2.90.0070.00816.83
7.2.80.0060.00416.86
7.2.70.0070.00917.01
7.2.60.0110.00716.87
7.2.50.0090.00916.85
7.2.40.0060.00717.01
7.2.30.0050.01116.84
7.2.20.0030.00917.04
7.2.10.0070.00716.72
7.2.00.0030.01316.85
7.1.330.0050.00915.74
7.1.320.0060.00815.54
7.1.310.0050.00615.57
7.1.300.0050.00815.59
7.1.290.0070.00815.70
7.1.280.0090.00615.67
7.1.270.0070.00715.46
7.1.260.0080.00215.81
7.1.250.0030.01015.80
7.1.240.0100.00715.43
7.1.230.0040.01115.61
7.1.220.0100.00715.57
7.1.210.0030.01015.47
7.1.200.0050.00815.76
7.1.190.0000.01515.62
7.1.180.0070.00715.44
7.1.170.0080.00615.78
7.1.160.0090.00615.61
7.1.150.0000.01015.85
7.1.140.0070.00715.84
7.1.130.0040.01215.73
7.1.120.0080.00815.84
7.1.110.0030.00615.59
7.1.100.0040.01016.90
7.1.90.0060.00915.45
7.1.80.0030.00915.76
7.1.70.0070.00416.35
7.1.60.0040.01617.73
7.1.50.0030.01216.08
7.1.40.0060.00615.63
7.1.30.0030.01515.75
7.1.20.0030.00915.67
7.1.10.0040.01515.79
7.1.00.0080.03819.06
7.0.330.0100.00615.42
7.0.320.0060.01015.38
7.0.310.0060.00915.06
7.0.300.0080.00415.25
7.0.290.0030.01015.07
7.0.280.0070.00315.11
7.0.270.0030.01015.01
7.0.260.0040.01115.31
7.0.250.0080.00415.51
7.0.240.0090.00615.57
7.0.230.0070.00715.32
7.0.220.0060.00315.33
7.0.210.0040.00715.18
7.0.200.0050.00715.85
7.0.190.0060.00315.33
7.0.180.0080.00814.98
7.0.170.0030.01515.36
7.0.160.0100.00315.39
7.0.150.0040.00815.07
7.0.140.0070.03918.76
7.0.130.0030.01015.32
7.0.120.0060.00615.39
7.0.110.0090.00315.37
7.0.100.0070.02417.82
7.0.90.0250.03717.69
7.0.80.0070.03217.59
7.0.70.0280.04517.49
7.0.60.0070.04017.63
7.0.50.0270.03017.73
7.0.40.0030.02416.84
7.0.30.0070.05016.84
7.0.20.0030.04816.70
7.0.10.0030.03316.78
7.0.00.0100.04016.71
5.6.400.0130.00013.98
5.6.390.0090.00914.36
5.6.380.0090.00614.64
5.6.370.0060.01314.58
5.6.360.0040.00814.49
5.6.350.0100.00314.12
5.6.340.0070.00714.11
5.6.330.0060.00914.21
5.6.320.0100.00314.59
5.6.310.0090.00314.24
5.6.300.0110.00614.41
5.6.290.0040.01214.16
5.6.280.0070.03717.83
5.6.270.0080.00414.68
5.6.260.0000.01014.38
5.6.250.0070.04717.54
5.6.240.0080.04017.52
5.6.230.0020.04217.56
5.6.220.0050.04617.52
5.6.210.0070.04417.56
5.6.200.0030.04317.60
5.6.190.0060.02317.77
5.6.180.0080.03717.58
5.6.170.0090.02317.68
5.6.160.0100.04217.65
5.6.150.0100.03817.52
5.6.140.0160.04017.56
5.6.130.0070.04217.67
5.6.120.0050.04117.54
5.6.110.0080.04717.64
5.6.100.0080.03017.67
5.6.90.0080.02817.56
5.6.80.0060.04617.14
5.6.70.0070.04317.28
5.6.60.0120.02517.36
5.6.50.0060.04517.22
5.6.40.0090.04517.25
5.6.30.0080.04217.39
5.6.20.0070.03217.39
5.6.10.0090.02817.33
5.6.00.0050.02417.30
5.5.380.0160.03717.32
5.5.370.0030.04917.44
5.5.360.0030.04817.13
5.5.350.0050.03217.32
5.5.340.0090.03617.55
5.5.330.0050.02917.66
5.5.320.0080.03517.42
5.5.310.0030.02717.49
5.5.300.0140.03817.59
5.5.290.0120.03717.65
5.5.280.0070.02817.62
5.5.270.0050.05117.65
5.5.260.0110.03817.50
5.5.250.0020.04517.32
5.5.240.0080.05017.17
5.5.230.0050.05017.10
5.5.220.0070.04416.96
5.5.210.0100.04017.10
5.5.200.0090.04117.18
5.5.190.0050.04517.13
5.5.180.0060.03116.99
5.5.170.0040.00714.01
5.5.160.0050.03117.17
5.5.150.0060.02417.18
5.5.140.0030.02517.21
5.5.130.0090.03317.08
5.5.120.0080.01817.33
5.5.110.0020.02617.11
5.5.100.0020.02817.15
5.5.90.0070.02016.96
5.5.80.0120.03216.92
5.5.70.0100.04316.90
5.5.60.0070.03717.11
5.5.50.0070.03317.00
5.5.40.0050.02317.02
5.5.30.0030.02217.17
5.5.20.0020.03017.13
5.5.10.0070.02717.25
5.5.00.0030.02516.99
5.4.450.0080.03815.31
5.4.440.0070.03715.30
5.4.430.0030.02915.29
5.4.420.0000.04215.11
5.4.410.0080.03515.10
5.4.400.0020.04415.11
5.4.390.0050.03815.14
5.4.380.0050.03815.13
5.4.370.0040.04915.10
5.4.360.0050.04515.07
5.4.350.0050.03915.10
5.4.340.0070.03815.00
5.4.330.0070.00711.05
5.4.320.0060.02115.10
5.4.310.0060.02214.98
5.4.300.0050.02015.00
5.4.290.0050.02115.11
5.4.280.0060.02515.12
5.4.270.0070.01815.10
5.4.260.0020.02715.05
5.4.250.0020.02415.18
5.4.240.0050.04015.09
5.4.230.0000.03715.07
5.4.220.0020.04415.05
5.4.210.0040.03015.14
5.4.200.0030.02215.09
5.4.190.0050.01815.08
5.4.180.0030.02014.96
5.4.170.0050.02215.04
5.4.160.0070.02214.96
5.4.150.0070.03014.99
5.4.140.0030.02113.74
5.4.130.0030.02513.77
5.4.120.0020.04013.76
5.4.110.0000.02613.85
5.4.100.0080.01613.75
5.4.90.0050.01813.72
5.4.80.0020.02013.74
5.4.70.0110.01713.81
5.4.60.0030.02013.76
5.4.50.0080.01813.69
5.4.40.0060.01913.71
5.4.30.0030.02313.67
5.4.20.0050.02213.72
5.4.10.0020.02613.70
5.4.00.0030.02313.50
5.3.290.0070.01912.87
5.3.280.0060.04112.83
5.3.270.0030.02012.81
5.3.260.0030.02312.86
5.3.250.0070.01912.82
5.3.240.0030.01912.86
5.3.230.0050.02212.79
5.3.220.0020.02512.87
5.3.210.0090.01512.87
5.3.200.0030.02112.78
5.3.190.0020.02312.80
5.3.180.0020.02312.77
5.3.170.0020.02312.78
5.3.160.0000.02412.78
5.3.150.0000.02512.82
5.3.140.0000.02612.80
5.3.130.0040.02212.80
5.3.120.0060.02212.81
5.3.110.0020.02412.78
5.3.100.0000.02912.55
5.3.90.0070.02312.60
5.3.80.0020.02512.56
5.3.70.0020.02412.58
5.3.60.0030.02012.57
5.3.50.0060.02012.53
5.3.40.0000.02412.56
5.3.30.0020.02412.50
5.3.20.0020.02312.33
5.3.10.0020.02212.41
5.3.00.0070.01812.31
5.2.170.0030.03011.01
5.2.160.0000.03011.24
5.2.150.0000.03311.04
5.2.140.0030.03011.23
5.2.130.0030.03311.21
5.2.120.0030.02711.20
5.2.110.0000.03311.21
5.2.100.0000.02711.19
5.2.90.0000.03311.13
5.2.80.0030.02710.98
5.2.70.0070.06011.01
5.2.60.0030.04011.16
5.2.50.0070.05311.16
5.2.40.0030.06011.02
5.2.30.0070.02710.89
5.2.20.0030.04310.82
5.2.10.0070.05010.81
5.2.00.0000.06310.77
5.1.60.0000.04310.41
5.1.50.0130.01710.41
5.1.40.0130.04010.41
5.1.30.0030.06010.41
5.1.20.0070.02710.41
5.1.10.0070.05310.41
5.1.00.0000.05310.41
5.0.50.0030.04310.41
5.0.40.0000.04710.41
5.0.30.0030.06310.41
5.0.20.0030.04310.41
5.0.10.0070.04010.41
5.0.00.0000.06310.41
4.4.90.0070.01710.41
4.4.80.0030.03310.41
4.4.70.0000.03710.41
4.4.60.0130.02010.41
4.4.50.0030.03010.41
4.4.40.0070.04010.41
4.4.30.0000.03710.41
4.4.20.0000.04010.41
4.4.10.0000.02310.41
4.4.00.0030.02310.41
4.3.110.0030.02710.41
4.3.100.0030.03010.41
4.3.90.0000.02010.41
4.3.80.0000.03010.41
4.3.70.0000.03710.41
4.3.60.0000.03710.41
4.3.50.0030.02310.41
4.3.40.0070.02710.41
4.3.30.0000.03010.41
4.3.20.0030.04310.41
4.3.10.0070.01710.41
4.3.00.0100.02710.41

preferences:
57.91 ms | 401 KiB | 5 Q