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(); ?>

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.0150.00618.28
8.3.50.0070.00718.03
8.3.40.0130.00318.79
8.3.30.0100.00318.45
8.3.20.0070.00018.89
8.3.10.0070.00021.92
8.3.00.0040.00423.45
8.2.180.0070.01118.16
8.2.170.0120.00322.96
8.2.160.0110.00419.32
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00319.66
8.2.110.0100.00022.07
8.2.100.0060.00617.83
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0000.00818.05
8.2.60.0040.00417.93
8.2.50.0030.00918.10
8.2.40.0000.00719.31
8.2.30.0040.00419.36
8.2.20.0040.00417.93
8.2.10.0080.00017.98
8.2.00.0000.00719.33
8.1.280.0170.00325.92
8.1.270.0000.00722.06
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00022.38
8.1.230.0070.00419.01
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00918.84
8.1.160.0000.00718.82
8.1.150.0040.00418.86
8.1.140.0040.00417.64
8.1.130.0000.00720.79
8.1.120.0000.00817.40
8.1.110.0000.00717.34
8.1.100.0040.00417.43
8.1.90.0030.00617.21
8.1.80.0000.00917.43
8.1.70.0070.00017.39
8.1.60.0100.00017.55
8.1.50.0030.00617.51
8.1.40.0030.00517.54
8.1.30.0080.00017.62
8.1.20.0000.00817.56
8.1.10.0030.00617.44
8.1.00.0050.00317.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.31
8.0.270.0100.00517.23
8.0.260.0070.00017.21
8.0.250.0000.00616.96
8.0.240.0030.00317.00
8.0.230.0030.00316.89
8.0.220.0030.00616.81
8.0.210.0000.00716.89
8.0.200.0030.00316.77
8.0.190.0000.00716.82
8.0.180.0030.00716.84
8.0.170.0040.00416.77
8.0.160.0070.00016.91
8.0.150.0030.00316.79
8.0.140.0070.00016.71
8.0.130.0000.00513.29
8.0.120.0040.00416.84
8.0.110.0040.00416.77
8.0.100.0040.00416.85
8.0.90.0000.00716.77
8.0.80.0100.00816.82
8.0.70.0040.00416.71
8.0.60.0000.00916.79
8.0.50.0070.00016.74
8.0.30.0090.01016.91
8.0.20.0140.00517.40
8.0.10.0000.00716.96
8.0.00.0090.01216.78
7.4.330.0000.00615.55
7.4.320.0000.00616.51
7.4.300.0030.00316.68
7.4.290.0030.00316.58
7.4.280.0000.00716.43
7.4.270.0050.00316.60
7.4.260.0030.00616.62
7.4.250.0040.00416.46
7.4.240.0000.00716.48
7.4.230.0000.00716.60
7.4.220.0050.00316.70
7.4.210.0070.00716.55
7.4.200.0030.00316.38
7.4.160.0080.00816.55
7.4.140.0140.00817.86
7.4.130.0090.00916.46
7.4.120.0070.01216.47
7.4.110.0070.01116.56
7.4.100.0090.01216.43
7.4.90.0130.00316.35
7.4.80.0060.01319.39
7.4.70.0190.00016.48
7.4.60.0030.01616.36
7.4.50.0070.00716.64
7.4.40.0030.01716.46
7.4.00.0090.00615.09
7.3.330.0000.00513.23
7.3.320.0030.00313.25
7.3.310.0030.00316.04
7.3.300.0000.00716.20
7.3.290.0080.00016.24
7.3.280.0120.00616.21
7.3.260.0060.01016.35
7.3.240.0090.01016.30
7.3.230.0100.00716.31
7.3.210.0110.01116.41
7.3.200.0070.01016.33
7.3.190.0060.01416.23
7.3.180.0060.01016.51
7.3.170.0030.01416.49
7.3.160.0140.00316.23
7.2.330.0150.00316.70
7.2.320.0060.01216.48
7.2.310.0070.01016.58
7.2.300.0060.01016.79
7.2.290.0060.01016.41
7.2.70.1180.00714.70
7.2.60.0850.01014.99
7.2.50.0910.00914.73
7.2.40.0860.00314.82
7.2.30.0600.00714.73
7.2.20.0280.00914.93
7.2.10.0310.00914.93
7.2.00.0420.01014.74
7.1.200.0030.00915.37
7.1.170.0850.00713.42
7.1.160.0810.01013.62
7.1.150.0900.00613.36
7.1.140.0290.00613.74
7.1.130.0270.00913.68
7.1.120.0290.01313.64
7.1.110.0330.00713.61
7.1.100.0250.00913.80
7.1.90.1050.00613.54
7.1.80.0920.00013.81
7.1.70.1080.00313.50
7.1.60.1680.00331.56
7.1.50.1430.01731.56
7.1.40.2040.01031.78
7.1.30.1770.00731.75
7.1.20.1860.01631.65
7.1.10.1550.01013.75
7.1.00.0900.00713.61

preferences:
59.39 ms | 400 KiB | 5 Q