3v4l.org

run code in 300+ PHP versions simultaneously
<?php class demo { public $hello = 'hello world!'; function hello() { echo $this->hello; } } $demo = new demo; $demo->hello(); ?> <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> </head> <body> </body> </html>

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.0060.01618.07
8.3.50.0070.00718.03
8.3.40.0110.00418.46
8.3.30.0110.00418.67
8.3.20.0070.00019.01
8.3.10.0070.00020.34
8.3.00.0080.00023.71
8.2.180.0170.00716.32
8.2.170.0110.00422.96
8.2.160.0070.00719.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00321.04
8.2.120.0080.00026.35
8.2.110.0090.00022.26
8.2.100.0090.00317.80
8.2.90.0080.00019.17
8.2.80.0030.00617.97
8.2.70.0080.00017.93
8.2.60.0050.00317.93
8.2.50.0000.00918.10
8.2.40.0080.00019.46
8.2.30.0000.00819.24
8.2.20.0070.00018.06
8.2.10.0040.00418.00
8.2.00.0000.00819.34
8.1.280.0120.00625.92
8.1.270.0050.00321.96
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0100.00022.47
8.1.230.0070.00419.00
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0050.00518.81
8.1.160.0070.00018.83
8.1.150.0040.00418.78
8.1.140.0080.00017.57
8.1.130.0030.00318.94
8.1.120.0000.00817.40
8.1.110.0020.00517.44
8.1.100.0040.00417.36
8.1.90.0060.00317.46
8.1.80.0030.00617.27
8.1.70.0050.00317.38
8.1.60.0100.00017.59
8.1.50.0000.00917.53
8.1.40.0000.00717.52
8.1.30.0060.00317.70
8.1.20.0060.00317.54
8.1.10.0030.00617.57
8.1.00.0050.00317.50
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0070.00018.44
8.0.270.0000.01017.32
8.0.260.0000.00717.29
8.0.250.0040.00416.94
8.0.240.0030.00316.86
8.0.230.0000.00716.80
8.0.220.0080.00016.73
8.0.210.0030.00316.73
8.0.200.0000.00716.88
8.0.190.0080.00016.82
8.0.180.0050.00516.89
8.0.170.0050.00316.71
8.0.160.0040.00416.85
8.0.150.0040.00416.70
8.0.140.0030.00316.79
8.0.130.0030.00313.24
8.0.120.0030.00516.75
8.0.110.0000.00716.93
8.0.100.0040.00416.72
8.0.90.0000.00716.65
8.0.80.0060.01216.80
8.0.70.0040.00416.94
8.0.60.0060.00316.80
8.0.50.0000.00816.87
8.0.30.0140.00416.96
8.0.20.0100.01317.40
8.0.10.0000.00817.00
8.0.00.0080.01316.84
7.4.330.0040.00015.55
7.4.320.0060.00016.48
7.4.300.0030.00316.46
7.4.290.0000.00716.45
7.4.280.0040.00416.48
7.4.270.0000.01016.65
7.4.260.0050.00216.35
7.4.250.0070.00016.32
7.4.240.0000.00716.53
7.4.230.0060.00016.70
7.4.220.0030.00616.36
7.4.210.0060.01016.54
7.4.200.0040.00416.40
7.4.160.0070.01116.51
7.4.140.0110.00817.86
7.4.130.0100.00716.47
7.4.120.0100.01116.54
7.4.110.0000.01816.51
7.4.100.0100.01016.54
7.4.90.0060.01016.37
7.4.80.0200.00419.39
7.4.70.0160.00316.63
7.4.60.0100.00716.67
7.4.50.0040.01416.27
7.4.40.0100.01416.64
7.4.00.0120.00514.91
7.3.330.0030.00313.25
7.3.320.0000.00513.25
7.3.310.0070.00016.29
7.3.300.0030.00316.10
7.3.290.0070.00016.11
7.3.280.0100.01016.23
7.3.260.0100.00716.51
7.3.240.0080.01116.45
7.3.230.0080.00816.29
7.3.210.0120.00616.47
7.3.200.0070.01016.54
7.3.190.0060.01116.14
7.3.180.0000.01516.34
7.3.170.0090.00916.33
7.3.160.0110.00616.36
7.3.120.0070.01014.73
7.3.110.0070.01014.70
7.3.100.0070.00714.58
7.3.90.0040.00714.67
7.3.80.0000.01814.48
7.3.70.0070.00714.65
7.3.60.0040.01114.84
7.3.50.0100.00714.56
7.3.40.0040.00414.90
7.3.30.0040.01114.65
7.3.20.0030.01016.68
7.3.10.0060.00616.47
7.3.00.0040.00716.73
7.2.330.0120.00616.54
7.2.320.0120.00616.56
7.2.310.0060.01116.30
7.2.300.0060.01216.81
7.2.290.0060.01116.39
7.2.250.0100.01015.11
7.2.240.0030.01614.96
7.2.230.0000.01114.98
7.2.220.0040.01615.01
7.2.210.0070.00714.86
7.2.200.0130.00615.10
7.2.190.0070.00715.11
7.2.180.0070.00715.06
7.2.170.0070.00714.94
7.2.70.1110.00714.77
7.2.60.1320.00314.38
7.2.50.1010.01214.43
7.2.40.1100.00614.92
7.2.30.1750.00614.80
7.2.20.1090.00614.84
7.2.10.1980.01314.84
7.2.00.1040.01014.61
7.1.330.0060.00615.54
7.1.320.0030.01415.87
7.1.310.0000.01015.74
7.1.300.0100.00715.38
7.1.290.0090.00315.48
7.1.280.0040.01215.65
7.1.270.0030.01015.53
7.1.260.0070.00715.54
7.1.200.0040.01115.78
7.1.170.1080.01013.58
7.1.160.1020.00613.64
7.1.150.1550.00713.80
7.1.140.1510.01313.66
7.1.130.1710.01013.78
7.1.120.1140.00913.80
7.1.110.1390.00313.66
7.1.100.1130.00613.56
7.1.90.1200.01013.45
7.1.80.1150.00313.79
7.1.70.1700.01013.51
7.1.60.1610.00631.75
7.1.50.1280.01031.41
7.1.40.1550.00731.71
7.1.30.1490.00331.98
7.1.20.1430.01031.56
7.1.10.1300.00713.61
7.1.00.1060.00013.37

preferences:
68.54 ms | 400 KiB | 5 Q