3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public $someProp = 'hello world'; } class Foo { function getBar() { return new Bar(); } } $foo = new Foo(); echo ($foo->getBar())->someProp;

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.0000.01518.56
8.3.60.0100.00716.50
8.3.50.0080.01121.93
8.3.40.0110.00418.54
8.3.30.0110.00718.58
8.3.20.0070.00020.29
8.3.10.0030.00623.48
8.3.00.0060.00319.38
8.2.190.0100.00718.16
8.2.180.0180.00018.52
8.2.170.0030.01322.96
8.2.160.0090.00621.93
8.2.150.0090.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00517.38
8.2.120.0030.01026.35
8.2.110.0080.00419.34
8.2.100.0040.00717.84
8.2.90.0000.00718.09
8.2.80.0060.00318.03
8.2.70.0080.00017.93
8.2.60.0050.00518.05
8.2.50.0040.00418.10
8.2.40.0060.00320.46
8.2.30.0070.00020.63
8.2.20.0030.00717.61
8.2.10.0000.00818.12
8.2.00.0000.00718.11
8.1.280.0130.00325.92
8.1.270.0090.00021.93
8.1.260.0040.00428.09
8.1.250.0030.00928.09
8.1.240.0040.00423.92
8.1.230.0070.00420.84
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0080.00017.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00718.50
8.1.160.0040.00422.13
8.1.150.0040.00418.87
8.1.140.0050.00319.41
8.1.130.0040.00417.64
8.1.120.0030.00317.30
8.1.110.0030.00417.27
8.1.100.0000.00717.40
8.1.90.0050.00317.34
8.1.80.0000.00717.41
8.1.70.0030.00317.29
8.1.60.0030.00617.62
8.1.50.0080.00017.42
8.1.40.0060.00317.54
8.1.30.0040.00417.72
8.1.20.0040.00417.54
8.1.10.0000.00817.59
8.1.00.0000.00817.53
8.0.300.0040.00420.03
8.0.290.0050.00216.75
8.0.280.0000.00718.37
8.0.270.0030.00317.16
8.0.260.0000.00717.25
8.0.250.0000.00716.95
8.0.240.0040.00416.89
8.0.230.0000.00716.78
8.0.220.0040.00416.86
8.0.210.0040.00416.71
8.0.200.0030.00616.90
8.0.190.0040.00416.88
8.0.180.0090.00016.79
8.0.170.0060.00316.85
8.0.160.0030.00516.92
8.0.150.0000.00716.82
8.0.140.0070.00016.73
8.0.130.0000.00613.22
8.0.120.0000.00916.75
8.0.110.0030.00516.79
8.0.100.0030.00516.68
8.0.90.0080.00016.82
8.0.80.0060.00916.77
8.0.70.0030.00616.95
8.0.60.0040.00416.70
8.0.50.0000.00716.80
8.0.30.0060.01217.05
8.0.20.0120.00717.40
8.0.10.0040.00416.91
8.0.00.0070.01116.81
7.4.330.0060.00016.76
7.4.320.0080.00016.53
7.4.300.0030.00316.51
7.4.290.0070.00016.61
7.4.280.0020.00516.39
7.4.270.0000.00716.52
7.4.260.0030.00316.58
7.4.250.0040.00416.48
7.4.240.0030.00316.52
7.4.230.0000.00716.52
7.4.220.0050.01316.71
7.4.210.0100.00616.47
7.4.200.0000.00716.39
7.4.160.0080.00816.52
7.4.150.0070.01017.40
7.4.140.0070.01417.86
7.4.130.0070.01216.51
7.4.120.0070.01216.42
7.4.110.0160.00316.41
7.4.100.0080.01316.50
7.4.90.0110.00616.70
7.4.80.0100.00619.39
7.4.70.0070.01616.52
7.4.60.0120.00316.44
7.4.50.0100.00316.32
7.4.40.0120.00916.32
7.4.30.0100.00716.52
7.4.00.0030.01214.67
7.3.330.0050.00013.23
7.3.320.0000.00513.26
7.3.310.0000.00716.22
7.3.300.0060.00016.23
7.3.290.0050.00916.18
7.3.280.0070.01116.22
7.3.270.0070.01317.40
7.3.260.0170.00716.29
7.3.240.0080.01116.26
7.3.230.0130.00316.39
7.3.210.0060.01016.25
7.3.200.0060.01316.44
7.3.190.0110.00716.18
7.3.180.0140.00316.32
7.3.170.0090.01316.27
7.3.160.0060.01016.27
7.2.330.0160.00616.77
7.2.320.0110.00616.52
7.2.310.0070.01016.81
7.2.300.0100.01316.77
7.2.290.0070.01416.42
7.2.60.0110.00416.77
7.2.00.0140.00919.06
7.1.200.0000.00915.79
7.1.100.0070.00718.09
7.1.70.0090.00317.09
7.1.60.0060.01619.48
7.1.50.0190.00316.51
7.1.00.0000.08022.58
7.0.200.0060.00614.91
7.0.60.0100.07019.84
7.0.50.0070.03717.86
7.0.40.0100.03720.23
7.0.30.0300.04320.07
7.0.20.0430.06020.07
7.0.10.0030.04720.05
7.0.00.0130.04020.25
5.6.280.0000.07020.78
5.6.210.0070.08020.55
5.6.200.0030.08718.19
5.6.190.0070.05320.58
5.6.180.0370.06720.77
5.6.170.0330.08320.45
5.6.160.0070.04320.55
5.6.150.0000.04318.14
5.6.140.0070.08018.27
5.6.130.0130.06718.28
5.6.120.0130.07721.15
5.6.110.0030.08721.05
5.6.100.0070.07021.11
5.6.90.0200.06321.08
5.6.80.0100.07720.41
5.5.350.4030.03720.47
5.5.340.0070.08318.02
5.5.330.0000.04720.57
5.5.320.0500.04320.27
5.5.310.0200.05320.32
5.5.300.0070.06318.08
5.5.290.0100.07717.95
5.5.280.0070.07720.88
5.5.270.0030.09020.87
5.5.260.0100.06720.88
5.5.250.0030.04720.62
5.5.240.0230.07320.16

preferences:
40.16 ms | 401 KiB | 5 Q