3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function __construct(){ echo 'Instance of A created' . PHP_EOL; } } class B{ protected function __construct(){ echo 'Instance of B created' . PHP_EOL; } } class C{ private function __construct(){ echo 'Instance of C created' . PHP_EOL; } }

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.4.20.0070.01317.54
8.4.10.0000.00917.48
8.3.150.0090.00920.39
8.3.140.0030.00616.49
8.3.130.0100.00018.38
8.3.120.0060.00320.47
8.3.110.0030.00616.49
8.3.100.0120.00324.06
8.3.90.0110.00726.77
8.3.80.0090.00018.30
8.3.70.0070.00716.38
8.3.60.0100.00718.30
8.3.50.0080.01021.24
8.3.40.0100.00318.71
8.3.30.0070.00719.14
8.3.20.0050.00220.21
8.3.10.0040.00423.53
8.3.00.0040.00419.02
8.2.260.0070.01118.96
8.2.250.0000.00916.73
8.2.240.0090.00018.60
8.2.230.0040.00420.94
8.2.220.0040.00437.54
8.2.210.0090.00926.77
8.2.200.0060.00316.50
8.2.190.0180.00318.04
8.2.180.0150.00418.29
8.2.170.0110.00418.84
8.2.160.0110.00322.96
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00019.23
8.2.110.0070.00319.22
8.2.100.0080.00417.66
8.2.90.0080.00019.39
8.2.80.0030.00517.38
8.2.70.0040.00417.63
8.2.60.0060.00317.91
8.2.50.0070.00318.07
8.2.40.0030.00617.96
8.2.30.0000.00917.97
8.2.20.0030.00517.46
8.2.10.0000.00717.88
8.2.00.0060.00317.89
8.1.310.0110.00416.59
8.1.300.0040.00416.10
8.1.290.0080.00030.84
8.1.280.0070.00725.92
8.1.270.0080.00624.66
8.1.260.0050.00326.35
8.1.250.0160.00328.09
8.1.240.0060.00318.96
8.1.230.0110.00020.89
8.1.220.0080.00017.74
8.1.210.0000.00918.85
8.1.200.0100.00017.11
8.1.190.0050.00317.10
8.1.180.0030.00618.10
8.1.170.0050.00518.83
8.1.160.0000.00718.68
8.1.150.0020.00518.67
8.1.140.0040.00417.32
8.1.130.0030.00317.63
8.1.120.0000.00717.25
8.1.110.0040.00417.22
8.1.100.0040.00417.27
8.1.90.0000.00717.37
8.1.80.0040.00417.29
8.1.70.0070.00017.16
8.1.60.0060.00317.34
8.1.50.0000.00817.39
8.1.40.0070.00017.28
8.1.30.0040.00417.46
8.1.20.0040.00417.42
8.1.10.0000.00817.23
8.1.00.0080.00017.24
8.0.300.0000.00719.88
8.0.290.0020.00516.58
8.0.280.0000.00718.19
8.0.270.0030.00316.63
8.0.260.0040.00423.50
8.0.250.0000.00716.88
8.0.240.0040.00416.82
8.0.230.0000.00716.69
8.0.220.0030.00316.66
8.0.210.0030.00316.81
8.0.200.0000.01016.78
8.0.190.0070.00016.84
8.0.180.0000.00716.70
8.0.170.0040.00416.77
8.0.160.0040.00416.75
8.0.150.0040.00416.84
8.0.140.0000.00716.81
8.0.130.0030.00313.20
8.0.120.0040.00416.62
8.0.110.0000.00716.73
8.0.100.0030.00316.55
8.0.90.0000.00816.62
8.0.80.0040.01116.72
8.0.70.0000.00816.75
8.0.60.0050.00216.64
8.0.50.0070.00016.60
8.0.30.0120.00517.05
8.0.20.0130.00617.40
8.0.10.0040.00416.86
8.0.00.0080.01016.54
7.4.330.0060.00015.03
7.4.320.0060.00016.30
7.4.300.0030.00316.38
7.4.290.0040.00416.36
7.4.280.0040.00416.48
7.4.270.0000.00716.46
7.4.260.0030.00316.45
7.4.250.0000.00816.32
7.4.240.0050.00216.47
7.4.230.0070.00016.46
7.4.220.0060.01316.50
7.4.210.0060.01416.34
7.4.200.0000.00716.50
7.4.160.0110.00516.27
7.4.150.0120.00617.40
7.4.140.0150.00817.86
7.4.130.0110.00816.41
7.4.120.0070.01016.34
7.4.110.0070.01716.30
7.4.100.0130.01016.48
7.4.90.0100.00716.31
7.4.80.0120.00619.39
7.4.70.0110.00716.24
7.4.60.0110.00616.42
7.4.50.0030.00616.12
7.4.40.0070.01016.41
7.4.30.0160.00716.41
7.4.00.0080.00914.86
7.3.330.0050.00012.99
7.3.320.0050.00013.09
7.3.310.0070.00016.06
7.3.300.0030.00316.12
7.3.290.0070.00716.11
7.3.280.0100.00916.14
7.3.270.0090.01017.40
7.3.260.0140.00316.23
7.3.250.0110.00616.23
7.3.240.0120.00516.45
7.3.230.0110.00716.39
7.3.210.0090.00916.50
7.3.200.0040.01316.12
7.3.190.0130.00716.12
7.3.180.0060.00916.49
7.3.170.0090.00616.27
7.3.160.0100.00716.09
7.3.120.0090.01014.51
7.3.110.0100.00714.88
7.3.100.0060.00814.80
7.3.90.0090.00914.40
7.3.80.0130.00114.56
7.3.70.0040.01014.69
7.3.60.0050.00714.45
7.3.50.0080.00614.57
7.3.40.0080.00814.62
7.3.30.0080.00714.64
7.3.20.0090.00415.44
7.3.10.0030.01115.44
7.3.00.0090.00915.34
7.2.330.0130.00316.59
7.2.320.0070.01016.30
7.2.310.0030.01416.53
7.2.300.0060.01216.48
7.2.290.0150.00716.24
7.2.250.0070.01114.77
7.2.240.0070.00914.71
7.2.230.0050.00814.55
7.2.220.0070.01214.57
7.2.210.0060.00814.75
7.2.200.0060.00914.64
7.2.190.0050.00814.70
7.2.180.0100.00514.52
7.2.170.0040.00914.56
7.2.160.0060.00914.54
7.2.150.0080.00814.68
7.2.140.0090.00614.67
7.2.130.0110.00614.55
7.2.120.0090.00614.73
7.2.110.0140.00614.96
7.2.100.1410.00514.47
7.2.90.0190.00514.69
7.2.80.0150.00914.67
7.2.70.1260.01014.70
7.2.60.0990.00615.38
7.2.50.1460.00814.59
7.2.40.1570.00614.88
7.2.30.0380.00714.74
7.2.20.0090.01114.73
7.2.10.0740.00914.56
7.2.00.1250.00816.08
7.1.330.0120.00614.65
7.1.320.0080.00614.61
7.1.310.0080.00914.73
7.1.300.0070.01114.55
7.1.290.0140.00614.64
7.1.280.0070.01114.73
7.1.270.0140.00414.71
7.1.260.0090.01214.68
7.1.250.0160.00313.54
7.1.240.0140.00913.84
7.1.230.0190.00613.68
7.1.220.0320.01113.78
7.1.210.0350.01013.72
7.1.200.0120.00414.30
7.1.190.1770.01113.56
7.1.180.0620.01013.54
7.1.170.0100.00913.57
7.1.160.0350.00213.68
7.1.150.1750.00313.55
7.1.140.1710.01113.63
7.1.130.0280.00913.55
7.1.120.1930.00713.59
7.1.110.1580.01013.59
7.1.100.1000.00914.90
7.1.90.0900.00513.47
7.1.80.0810.00913.61
7.1.70.0480.00614.77
7.1.60.0600.00521.65
7.1.50.0640.00620.62
7.1.40.0820.01022.71
7.1.30.0780.01222.81
7.1.20.0740.01022.58
7.1.10.0520.00613.60
7.1.00.0380.02816.52
7.0.330.0110.00713.33
7.0.320.0360.00713.44
7.0.310.1020.01513.25
7.0.300.0720.00713.30
7.0.290.0150.01113.46
7.0.280.0690.00613.42
7.0.270.2100.00813.37
7.0.260.2220.00813.17
7.0.250.1600.00713.34
7.0.240.1510.01113.52
7.0.230.0790.00813.58
7.0.220.0870.00913.30
7.0.210.0660.01313.48
7.0.200.0550.00813.83
7.0.190.0780.00813.44
7.0.180.0660.00813.43
7.0.170.0650.00813.42
7.0.160.1670.01013.40
7.0.150.0500.00813.19
7.0.140.0440.01213.43
7.0.130.0560.00613.45
7.0.120.0600.00713.56
7.0.110.0490.00913.37
7.0.100.0620.00213.30
7.0.90.0610.00513.23
7.0.80.0420.03115.49
7.0.70.0550.02815.63
7.0.60.0400.02615.44
7.0.50.0330.02715.66
7.0.40.0280.02215.61
7.0.30.0290.01915.49
7.0.20.0230.01915.65
7.0.10.0330.01715.58
7.0.00.0320.02215.41
5.6.400.0160.00714.27
5.6.390.0180.00014.03
5.6.380.0130.00813.97
5.6.370.0130.00714.07
5.6.360.0140.00714.00
5.6.350.0180.00514.03
5.6.340.0150.00513.91
5.6.330.0150.00814.37
5.6.320.0150.01014.29
5.6.310.0140.00714.04
5.6.300.0090.01414.06
5.6.290.0110.00614.21
5.6.280.0080.03016.29
5.6.270.0150.00414.29
5.6.260.0070.01214.01
5.6.250.0130.00614.03
5.6.240.0140.00413.91
5.6.230.0100.02316.32
5.6.220.0070.03516.13
5.6.210.0090.02716.14
5.6.200.0090.02516.29
5.6.190.0100.03116.14
5.6.180.0090.01816.34
5.6.170.0080.02216.14
5.6.160.0090.01916.32
5.6.150.0060.02216.38
5.6.140.0080.01916.35
5.6.130.0120.01516.40
5.6.120.0080.02216.32
5.6.110.0140.02416.25
5.6.100.0110.01716.41
5.6.90.0090.02816.42
5.6.80.0090.01916.18
5.6.70.0120.01716.20
5.6.60.0100.01816.12
5.6.50.0140.01416.19
5.6.40.0070.02216.05
5.6.30.0100.01816.12
5.6.20.0120.02116.19
5.6.10.0110.01816.11
5.6.00.0130.01716.22
5.5.380.0150.00312.30
5.5.370.0120.02815.05
5.5.360.0070.03515.03
5.5.350.0120.03015.05
5.5.340.0090.02115.31
5.5.330.0110.02515.22
5.5.320.0130.01415.08
5.5.310.0100.01815.23
5.5.300.0070.02015.37
5.5.290.0100.01615.21
5.5.280.0100.01715.25
5.5.270.0100.01815.24
5.5.260.0140.03115.26
5.5.250.0110.01415.18
5.5.240.0090.01814.97
5.5.230.0070.02214.88
5.5.220.0110.01515.00
5.5.210.0070.01815.01
5.5.200.0150.01415.02
5.5.190.0070.01714.86
5.5.180.0070.01915.00
5.5.170.0110.01113.92
5.5.160.0080.02114.96
5.5.150.0100.02714.89
5.5.140.0090.01515.04
5.5.130.0100.01914.81
5.5.120.0090.02414.93
5.5.110.0070.01914.95
5.5.100.0100.02014.95
5.5.90.0100.02614.83
5.5.80.0090.01614.87
5.5.70.0070.02014.98
5.5.60.0050.03014.87
5.5.50.0140.02915.02
5.5.40.0090.03014.89
5.5.30.0110.02914.85
5.5.20.0100.03114.76
5.5.10.0080.03114.85
5.5.00.0070.03214.71
5.4.450.0080.01614.22
5.4.440.0080.01714.30
5.4.430.0050.01914.35
5.4.420.0070.01714.22
5.4.410.0090.02014.29
5.4.400.0110.01114.11
5.4.390.0070.01814.22
5.4.380.0080.01314.21
5.4.370.0080.01314.23
5.4.360.0070.02114.09
5.4.350.0060.02114.16
5.4.340.0080.02214.20
5.4.330.0110.00511.61
5.4.320.0090.01314.19
5.4.310.0080.02514.09
5.4.300.0140.01014.05
5.4.290.0100.02114.20
5.4.280.0060.01714.12
5.4.270.0060.01514.21
5.4.260.0090.01514.18
5.4.250.0050.01914.19
5.4.240.0070.02614.23
5.4.230.0090.01114.11
5.4.220.0110.01714.17
5.4.210.0100.02714.16
5.4.200.0080.03014.29
5.4.190.0110.02814.17
5.4.180.0130.02414.07
5.4.170.0070.02314.16
5.4.160.0100.02914.20
5.4.150.0060.03214.00
5.4.140.0070.03113.23
5.4.130.0050.03113.34
5.4.120.0090.02713.32
5.4.110.0110.02713.31
5.4.100.0050.03113.32
5.4.90.0120.02213.39
5.4.80.0080.02313.26
5.4.70.0070.01713.26
5.4.60.0100.02713.32
5.4.50.0060.01813.23
5.4.40.0110.01413.35
5.4.30.0060.03013.30
5.4.20.0070.02213.26
5.4.10.0080.02713.36
5.4.00.0110.01213.09
5.3.290.0070.02012.54
5.3.280.0060.02312.46
5.3.270.0110.03512.53
5.3.260.0060.03012.40
5.3.250.0140.03312.46
5.3.240.0080.04012.35
5.3.230.0080.03112.51
5.3.220.0080.03812.37
5.3.210.0110.03812.42
5.3.200.0040.04412.27
5.3.190.0100.04112.46
5.3.180.0130.03512.41
5.3.170.0100.03312.35
5.3.160.0100.03712.54
5.3.150.0070.02812.44
5.3.140.0040.04412.49
5.3.130.0020.03612.46
5.3.120.0020.03712.34
5.3.110.0060.02212.38
5.3.100.0050.03912.08
5.3.90.0080.03712.10
5.3.80.0100.03712.10
5.3.70.0080.03912.15
5.3.60.0090.03912.09
5.3.50.0120.01712.03
5.3.40.0090.04112.08
5.3.30.0100.03512.04
5.3.20.0140.02711.97
5.3.10.0090.03111.89
5.3.00.0080.03511.82
5.2.170.0080.01710.68
5.2.160.0060.03310.68
5.2.150.0080.02810.68
5.2.140.0090.03010.68
5.2.130.0060.03410.68
5.2.120.0080.03210.68
5.2.110.0090.02910.68
5.2.100.0060.02010.68
5.2.90.0030.03410.68
5.2.80.0110.03210.68
5.2.70.0060.03510.68
5.2.60.0030.02810.68
5.2.50.0090.03210.68
5.2.40.0090.02210.68
5.2.30.0080.03310.68
5.2.20.0030.03610.68
5.2.10.0070.02610.68
5.2.00.0020.02410.68
5.1.60.0090.01910.68
5.1.50.0090.02010.68
5.1.40.0070.01310.68
5.1.30.0000.02010.68
5.1.20.0080.02710.68
5.1.10.0070.02710.68
5.1.00.0020.02210.68
5.0.50.0040.02010.68
5.0.40.0070.01510.68
5.0.30.0070.03010.68
5.0.20.0030.01810.68
5.0.10.0030.02010.68
5.0.00.0020.03810.68
4.4.90.0030.01310.68
4.4.80.0040.01010.68
4.4.70.0050.01910.68
4.4.60.0090.01110.68
4.4.50.0000.02210.68
4.4.40.0010.01610.68
4.4.30.0070.01610.68
4.4.20.0040.00910.68
4.4.10.0010.01610.68
4.4.00.0020.03010.68
4.3.110.0000.01710.68
4.3.100.0060.01510.68
4.3.90.0020.01810.68
4.3.80.0030.02510.68
4.3.70.0040.01710.68
4.3.60.0030.02010.68
4.3.50.0020.02210.68
4.3.40.0030.02710.68
4.3.30.0050.01810.68
4.3.20.0070.01510.68
4.3.10.0020.01910.68
4.3.00.0060.01710.68

preferences:
84.46 ms | 403 KiB | 5 Q