3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! class Framework { const NAME = "Microd"; const SOURCE_VERSION = "0.1.0"; const DATABASE_VERSION = "0.1.0"; function __construct() { echo "Framework Start\n"; } function __destruct() { echo "Framework End\n"; } } class Test extends Framework { const NAME = "Microd"; const SOURCE_VERSION = "0.1.0"; const DATABASE_VERSION = "0.1.0"; function __construct() { echo "Test Start\n"; } function __destruct() { echo "Test End\n"; } } $framework = new Framework(); //echo \Microd\Framework::DATABASE_VERSION; $test = new Test();

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.58
8.3.60.0110.00418.30
8.3.50.0100.01122.05
8.3.40.0110.00418.67
8.3.30.0140.00318.60
8.3.20.0060.00918.77
8.3.10.0080.00020.96
8.3.00.0130.00623.66
8.2.180.0110.00416.63
8.2.170.0110.00422.96
8.2.160.0090.00620.57
8.2.150.0070.01124.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00619.66
8.2.110.0000.00921.07
8.2.100.0040.00717.91
8.2.90.0040.00419.10
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0070.00418.03
8.2.30.0040.00421.23
8.2.20.0000.00717.51
8.2.10.0040.00417.62
8.2.00.0000.00917.68
8.1.280.0090.00925.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.45
8.1.230.0040.00721.04
8.1.220.0050.00318.77
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0040.00418.47
8.1.160.0000.00718.82
8.1.150.0080.00018.57
8.1.140.0000.00817.34
8.1.130.0030.00617.82
8.1.120.0040.00317.24
8.1.110.0000.00717.27
8.1.100.0000.00817.43
8.1.90.0040.00417.43
8.1.80.0040.00417.43
8.1.70.0030.00517.35
8.1.60.0060.00317.64
8.1.50.0080.00017.40
8.1.40.0030.00617.58
8.1.30.0000.00717.62
8.1.20.0080.00017.63
8.1.10.0000.00717.59
8.1.00.0040.00417.40
8.0.300.0040.00420.02
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0000.00717.25
8.0.260.0050.00316.82
8.0.250.0020.00516.86
8.0.240.0030.00616.91
8.0.230.0000.00716.86
8.0.220.0000.00716.82
8.0.210.0070.00016.82
8.0.200.0000.00616.88
8.0.190.0030.00316.83
8.0.180.0000.00816.76
8.0.170.0060.00316.84
8.0.160.0080.00016.91
8.0.150.0000.00716.70
8.0.140.0040.00416.83
8.0.130.0050.00213.22
8.0.120.0000.00716.68
8.0.110.0000.00716.86
8.0.100.0050.00316.81
8.0.90.0050.00316.87
8.0.80.0140.00016.83
8.0.70.0020.00516.94
8.0.60.0000.00816.72
8.0.50.0040.00416.71
8.0.30.0130.00516.99
8.0.20.0060.01217.40
8.0.10.0050.00216.94
8.0.00.0070.01016.78
7.4.330.0000.00614.71
7.4.320.0000.00616.46
7.4.300.0000.00616.43
7.4.290.0000.00716.57
7.4.280.0030.00616.45
7.4.270.0000.00816.52
7.4.260.0000.00513.28
7.4.250.0000.00716.48
7.4.240.0030.00316.53
7.4.230.0030.00316.35
7.4.220.0110.00816.49
7.4.210.0080.00616.54
7.4.200.0000.00716.70
7.4.190.0000.00716.44
7.4.160.0200.00316.44
7.4.150.0100.00717.40
7.4.140.0080.00917.86
7.4.130.0090.00816.58
7.4.120.0060.01116.53
7.4.110.0120.00616.61
7.4.100.0050.01116.44
7.4.90.0100.01316.45
7.4.80.0140.00319.39
7.4.70.0100.00716.58
7.4.60.0080.01116.56
7.4.50.0000.00716.29
7.4.40.0030.01422.52
7.4.30.0100.00716.53
7.4.10.0120.00616.35
7.4.00.0090.00615.52
7.3.330.0050.00013.19
7.3.320.0030.00313.10
7.3.310.0030.00316.09
7.3.300.0070.00016.17
7.3.290.0090.00616.22
7.3.280.0060.01216.28
7.3.270.0070.01017.40
7.3.260.0130.00518.24
7.3.250.0050.01316.20
7.3.240.0070.00816.29
7.3.230.0130.00316.39
7.3.210.0070.01016.19
7.3.200.0140.00319.39
7.3.190.0100.01316.40
7.3.180.0000.01516.50
7.3.170.0120.01216.27
7.3.160.0110.00616.31
7.3.130.0060.01216.41
7.3.120.0050.01215.55
7.3.110.0100.00716.18
7.3.100.0040.01116.27
7.3.90.0100.00616.16
7.3.80.0090.00416.09
7.3.70.0070.00716.28
7.3.60.0030.00616.25
7.3.50.0000.00916.07
7.3.40.0030.01016.27
7.3.30.0130.00616.15
7.3.20.0080.00617.99
7.3.10.0110.00018.14
7.3.00.0000.01518.19
7.2.330.0120.01216.45
7.2.320.0160.00716.68
7.2.310.0060.01216.74
7.2.300.0110.01116.70
7.2.290.0060.01216.72
7.2.260.0090.00616.63
7.2.250.0070.01316.62
7.2.240.0070.00716.50
7.2.230.0090.00616.39
7.2.220.0040.00716.43
7.2.210.0030.00716.34
7.2.200.0070.00716.41
7.2.190.0070.00416.45
7.2.180.0090.00616.48
7.2.170.0000.01716.43
7.2.160.0120.00616.51
7.2.150.0100.00618.37
7.2.140.0080.00418.27
7.2.130.0070.01118.32
7.2.120.0000.01218.35
7.2.110.0070.00718.33
7.2.100.0100.00318.36
7.2.90.0070.00718.23
7.2.80.0060.00918.33
7.2.70.0000.00918.25
7.2.60.0000.01218.34
7.2.50.0000.01518.31
7.2.40.0040.00818.35
7.2.30.0030.00718.43
7.2.20.0030.01318.16
7.2.10.0000.01118.16
7.2.00.0050.01118.81
7.1.330.0060.00617.32
7.1.320.0060.00917.41
7.1.310.0060.00317.04
7.1.300.0040.01117.10
7.1.290.0070.01017.27
7.1.280.0070.00717.26
7.1.270.0030.00917.22
7.1.260.0040.00817.17
7.1.250.0110.00717.25
7.1.240.0030.00617.05
7.1.230.0070.00717.06
7.1.220.0040.01017.08
7.1.210.0070.00717.01
7.1.200.0070.00716.47
7.1.190.0090.00317.17
7.1.180.0000.01317.18
7.1.170.0070.00717.12
7.1.160.0070.00716.98
7.1.150.0100.00317.21
7.1.140.0060.00317.25
7.1.130.0030.00717.16
7.1.120.0070.00717.23
7.1.110.0040.01117.20
7.1.100.0030.01017.62
7.1.90.0030.01017.23
7.1.80.0110.00017.13
7.1.70.0050.00517.14
7.1.60.0060.01118.35
7.1.50.0090.00316.95
7.1.40.0030.01017.17
7.1.30.0060.00917.02
7.1.20.0070.00717.13
7.1.10.0090.00617.03
7.1.00.0060.01919.80
7.0.330.0130.00016.77
7.0.320.0040.00816.81
7.0.310.0070.00717.14
7.0.300.0060.00316.97
7.0.290.0000.01117.03
7.0.280.0030.01016.91
7.0.270.0030.01016.83
7.0.260.0120.00316.87
7.0.250.0070.00717.04
7.0.240.0070.00716.85
7.0.230.0130.00016.84
7.0.220.0030.01016.92
7.0.210.0090.00617.04
7.0.200.0040.00816.63
7.0.190.0100.00316.96
7.0.180.0000.00916.82
7.0.170.0030.00617.03
7.0.160.0060.00916.80
7.0.150.0060.00616.88
7.0.140.0030.04219.49
7.0.130.0000.00916.88
7.0.120.0070.01016.85
7.0.110.0030.01016.94
7.0.100.0040.00817.04
7.0.90.0000.01016.92
7.0.80.0000.01216.82
7.0.70.0120.01819.21
7.0.60.0050.04519.29
7.0.50.0040.03519.42
7.0.40.0080.04417.45
7.0.30.0050.03517.47
7.0.20.0080.04617.46
7.0.10.0030.04817.51
7.0.00.0050.04517.50
5.6.400.0070.01015.87
5.6.390.0040.01515.64
5.6.380.0000.01316.15
5.6.370.0030.00615.76
5.6.360.0030.00615.70
5.6.350.0000.01715.76
5.6.340.0040.00815.80
5.6.330.0040.01115.86
5.6.320.0000.01515.86
5.6.310.0080.00615.80
5.6.300.0070.00715.73
5.6.290.0040.00715.63
5.6.280.0050.04018.40
5.6.270.0070.00715.95
5.6.260.0030.00715.71
5.6.250.0040.01115.70
5.6.240.0060.00315.63
5.6.230.0060.00615.88
5.6.220.0020.02918.20
5.6.210.0060.02818.27
5.6.200.0000.04218.39
5.6.190.0050.04818.38
5.6.180.0100.04518.30
5.6.170.0020.04418.44
5.6.160.0120.03018.43
5.6.150.0050.03518.36
5.6.140.0020.05018.52
5.6.130.0100.04218.37
5.6.120.0060.03418.43
5.6.110.0070.04318.35
5.6.100.0030.05118.46
5.6.90.0060.04818.33
5.6.80.0080.02918.10
5.6.70.0040.03617.92
5.6.60.0080.04018.10
5.6.50.0080.04518.02
5.6.40.0080.04318.24
5.6.30.0060.04118.04
5.6.20.0050.04018.14
5.6.10.0060.04318.16
5.6.00.0030.04018.00
5.5.380.0090.00015.89
5.5.370.0140.00015.64
5.5.360.0030.02718.21
5.5.350.0110.04018.28
5.5.340.0090.02718.33
5.5.330.0050.04418.22
5.5.320.0030.04918.36
5.5.310.0050.04718.13
5.5.300.0100.04018.37
5.5.290.0020.05218.22
5.5.280.0060.03518.36
5.5.270.0080.04518.40
5.5.260.0030.03018.29
5.5.250.0030.02518.16
5.5.240.0030.04717.90
5.5.230.0080.03318.07
5.5.220.0050.04217.98
5.5.210.0070.04517.87
5.5.200.0070.03417.85
5.5.190.0110.04017.93
5.5.180.0080.04318.04
5.5.170.0000.01215.34
5.5.160.0070.02617.97
5.5.150.0050.02517.92
5.5.140.0030.02718.01
5.5.130.0050.02618.10
5.5.120.0030.03618.04
5.5.110.0050.02517.96
5.5.100.0070.02417.99
5.5.90.0050.02817.71
5.5.80.0070.02217.88
5.5.70.0070.02217.94
5.5.60.0020.02717.84
5.5.50.0090.01917.91
5.5.40.0060.02017.77
5.5.30.0050.02317.98
5.5.20.0020.02517.80
5.5.10.0050.02317.79
5.5.00.0090.02617.76
5.4.450.0080.03815.85
5.4.440.0110.03616.04
5.4.430.0030.04015.95
5.4.420.0050.03715.87
5.4.410.0110.03615.95
5.4.400.0030.04215.86
5.4.390.0050.04215.80
5.4.380.0030.03715.71
5.4.370.0050.03915.88
5.4.360.0050.04515.96
5.4.350.0070.04015.80
5.4.340.0030.03115.77
5.4.330.0060.00312.53
5.4.320.0030.02415.87
5.4.310.0090.01915.86
5.4.300.0060.02315.92
5.4.290.0040.02415.68
5.4.280.0050.02215.87
5.4.270.0030.02415.73
5.4.260.0050.02215.81
5.4.250.0050.02415.79
5.4.240.0020.02415.78
5.4.230.0050.01815.93
5.4.220.0030.02615.83
5.4.210.0020.02415.80
5.4.200.0050.02215.69
5.4.190.0080.01815.79
5.4.180.0010.02715.76
5.4.170.0020.02515.80
5.4.160.0030.02315.69
5.4.150.0060.02115.69
5.4.140.0000.02214.41
5.4.130.0020.02014.54
5.4.120.0020.02214.38
5.4.110.0040.02214.54
5.4.100.0000.02314.52
5.4.90.0050.01714.44
5.4.80.0060.01314.63
5.4.70.0020.01814.48
5.4.60.0020.02514.37
5.4.50.0030.02014.49
5.4.40.0030.01814.52
5.4.30.0000.03914.48
5.4.20.0010.02714.46
5.4.10.0080.02014.52
5.4.00.0020.02114.24
5.3.290.0020.02713.90
5.3.280.0040.02613.87
5.3.270.0000.02513.86
5.3.260.0030.02313.96
5.3.250.0000.02413.81
5.3.240.0000.02313.86
5.3.230.0020.02013.83
5.3.220.0040.02013.71
5.3.210.0050.02013.70
5.3.200.0030.02113.69
5.3.190.0020.02013.71
5.3.180.0070.01513.76
5.3.170.0020.02013.79
5.3.160.0050.01913.77
5.3.150.0030.02213.79
5.3.140.0050.01813.76
5.3.130.0010.03113.79
5.3.120.0080.02013.74
5.3.110.0030.03413.72
5.3.100.0050.02113.45
5.3.90.0050.02213.44
5.3.80.0070.03713.39
5.3.70.0030.02813.41
5.3.60.0020.02113.42
5.3.50.0050.01913.53
5.3.40.0000.02713.37
5.3.30.0030.02213.38
5.3.20.0030.02813.39
5.3.10.0030.03913.08
5.3.00.0030.03813.18
5.2.170.0000.03311.18
5.2.160.0000.03011.26
5.2.150.0030.02711.21
5.2.140.0000.07711.16
5.2.130.0030.03311.17
5.2.120.0000.03011.10
5.2.110.0030.05311.09
5.2.100.0030.04711.22
5.2.90.0000.06711.01
5.2.80.0000.04010.98
5.2.70.0000.04711.16
5.2.60.0000.06311.10
5.2.50.0030.05311.03
5.2.40.0070.05011.11
5.2.30.0000.06311.07
5.2.20.0030.05710.96
5.2.10.0000.06310.97
5.2.00.0030.05310.96
5.1.60.0070.05310.96
5.1.50.0030.04710.96
5.1.40.0030.05310.96
5.1.30.0000.06310.96
5.1.20.0030.06010.96
5.1.10.0000.06010.96
5.1.00.0030.04310.96
5.0.50.0030.04310.96
5.0.40.0030.04310.96
5.0.30.0000.05310.96
5.0.20.0030.03710.96
5.0.10.0000.04010.96
5.0.00.0000.06710.96
4.4.90.0000.03710.96
4.4.80.0000.03710.96
4.4.70.0000.03710.96
4.4.60.0070.03310.96
4.4.50.0000.03710.96
4.4.40.0000.05710.96
4.4.30.0030.03310.96
4.4.20.0000.03710.96
4.4.10.0030.02010.96
4.4.00.0000.04010.96
4.3.110.0070.03010.96
4.3.100.0000.03710.96
4.3.90.0000.03310.96
4.3.80.0030.03710.96
4.3.70.0030.02310.96
4.3.60.0000.03310.96
4.3.50.0030.03310.96
4.3.40.0000.03710.96
4.3.30.0000.03310.96
4.3.20.0000.03710.96
4.3.10.0000.04010.96
4.3.00.0000.03710.96

preferences:
42.55 ms | 401 KiB | 5 Q