3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myclass{ public function one(){ return 'sth'; } public function two(){ function myfunc($arg, $that){ if ($arg){ return $that->one(); } else { return 'nothing'; } } return myfunc(TRUE, $this); } } $obj = new myclass; echo $obj->two();

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.0040.01416.50
8.3.50.0040.01116.13
8.3.40.0100.00718.54
8.3.30.0120.00318.63
8.3.20.0030.00520.16
8.3.10.0000.00721.75
8.3.00.0050.00519.13
8.2.180.0110.00716.50
8.2.170.0100.00322.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00021.05
8.2.120.0040.00426.35
8.2.110.0000.00922.18
8.2.100.0120.00017.91
8.2.90.0040.00417.74
8.2.80.0030.00617.97
8.2.70.0000.00917.93
8.2.60.0000.00718.16
8.2.50.0040.00418.10
8.2.40.0040.00420.25
8.2.30.0050.00221.05
8.2.20.0000.00717.94
8.2.10.0040.00418.05
8.2.00.0050.00318.06
8.1.280.0070.01025.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.39
8.1.230.0070.00721.04
8.1.220.0080.00020.88
8.1.210.0050.00518.77
8.1.200.0030.00617.25
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0050.00318.90
8.1.160.0030.00319.02
8.1.150.0070.00018.76
8.1.140.0040.00419.45
8.1.130.0030.00318.80
8.1.120.0000.00717.36
8.1.110.0030.00617.44
8.1.100.0000.00817.36
8.1.90.0030.00517.48
8.1.80.0060.00317.52
8.1.70.0000.00817.48
8.1.60.0000.00817.48
8.1.50.0030.00517.56
8.1.40.0040.00417.50
8.1.30.0000.01117.65
8.1.20.0000.00817.64
8.1.10.0040.00417.48
8.1.00.0050.00217.37
8.0.300.0060.00321.85
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0030.00317.17
8.0.260.0070.00016.71
8.0.250.0030.00317.00
8.0.240.0060.00316.88
8.0.230.0030.00316.84
8.0.220.0040.00416.89
8.0.210.0030.00316.88
8.0.200.0040.00416.95
8.0.190.0030.00616.92
8.0.180.0080.00016.89
8.0.170.0070.00016.93
8.0.160.0000.00716.79
8.0.150.0040.00416.75
8.0.140.0050.00216.74
8.0.130.0030.00313.37
8.0.120.0040.00416.86
8.0.110.0000.00716.84
8.0.100.0070.00016.95
8.0.90.0070.00016.72
8.0.80.0100.01016.87
8.0.70.0080.00016.77
8.0.60.0040.00416.95
8.0.50.0040.00416.73
8.0.30.0070.01017.17
8.0.20.0100.01117.40
8.0.10.0040.00416.90
8.0.00.0100.00716.54
7.4.330.0020.00215.55
7.4.320.0000.00616.58
7.4.300.0040.00416.55
7.4.290.0060.00316.58
7.4.280.0070.00016.41
7.4.270.0000.00816.63
7.4.260.0080.00016.50
7.4.250.0040.00416.52
7.4.240.0040.00416.50
7.4.230.0000.00716.49
7.4.220.0090.01216.55
7.4.210.0090.00716.62
7.4.200.0030.00316.54
7.4.160.0110.01116.43
7.4.150.0180.00017.40
7.4.140.0080.01117.86
7.4.130.0120.01216.44
7.4.120.0090.01216.41
7.4.110.0070.01116.61
7.4.100.0120.00916.38
7.4.90.0120.00816.46
7.4.80.0130.00419.39
7.4.70.0030.01216.57
7.4.60.0130.00516.42
7.4.50.0070.01116.49
7.4.40.0060.01016.35
7.4.30.0100.00716.61
7.4.00.0050.01214.95
7.3.330.0030.00313.30
7.3.320.0000.00513.11
7.3.310.0070.00016.31
7.3.300.0000.00716.35
7.3.290.0040.00416.18
7.3.280.0060.01116.27
7.3.270.0030.01917.40
7.3.260.0080.01216.43
7.3.250.0030.01416.28
7.3.240.0120.01116.43
7.3.230.0060.01616.49
7.3.210.0100.00716.30
7.3.200.0130.00316.25
7.3.190.0040.01316.49
7.3.180.0160.00016.26
7.3.170.0070.01116.40
7.3.160.0120.00916.32
7.3.120.0090.00915.01
7.3.110.0110.00414.84
7.3.100.0000.01514.75
7.3.90.0030.01014.62
7.3.80.0060.00614.79
7.3.70.0060.00914.87
7.3.60.0060.00314.77
7.3.50.0150.00014.51
7.3.40.0120.00014.74
7.3.30.0030.01014.82
7.3.20.0030.00616.71
7.3.10.0100.00416.53
7.3.00.0060.00816.64
7.2.330.0100.00716.66
7.2.320.0140.00616.37
7.2.310.0130.01016.75
7.2.300.0100.00716.55
7.2.290.0030.01416.30
7.2.250.0080.01215.02
7.2.240.0070.01415.17
7.2.230.0080.00815.20
7.2.220.0090.00914.98
7.2.210.0060.00315.07
7.2.200.0110.00714.96
7.2.190.0000.01514.89
7.2.180.0000.00915.09
7.2.170.0040.01114.74
7.2.130.0060.01016.66
7.2.120.0020.01016.67
7.2.110.0050.00916.69
7.2.100.0070.00616.86
7.2.90.0070.00716.91
7.2.80.0030.01116.75
7.2.70.0020.01216.83
7.2.60.0040.00916.85
7.2.50.0070.00916.84
7.2.40.0050.01016.71
7.2.30.0040.00816.99
7.2.20.0060.00716.84
7.2.10.0090.00516.77
7.2.00.0070.00717.77
7.1.330.0040.01215.80
7.1.320.0030.01415.85
7.1.310.0090.00015.46
7.1.300.0060.00915.57
7.1.290.0060.00615.66
7.1.280.0060.00315.79
7.1.270.0100.00315.60
7.1.260.0070.00715.71
7.1.250.0040.00715.68
7.1.200.0040.00815.86
7.1.100.0110.00718.03
7.1.70.0090.00617.25
7.1.60.0230.00735.18
7.1.50.0100.01734.98
7.1.40.0190.00934.34
7.1.30.0200.00934.50
7.1.20.0220.00934.73
7.1.10.0000.01516.62
7.1.00.0030.01016.82
7.0.200.0060.00616.61
7.0.190.0080.00416.86
7.0.180.0040.01116.18
7.0.170.0000.01316.13
7.0.160.0070.00716.28
7.0.150.0070.00716.27
7.0.140.0060.00916.33
7.0.130.0040.00916.34
7.0.120.0090.00616.57
7.0.110.0070.00716.30
7.0.100.0050.01116.28
7.0.90.0030.01016.32
7.0.80.0030.01316.27
7.0.70.0030.01016.40
7.0.60.0080.00516.14
7.0.50.0000.01416.23
7.0.40.0030.01016.30
7.0.30.0000.01416.31
7.0.20.0000.01316.42
7.0.10.0030.01016.28
7.0.00.0070.00716.31

preferences:
50.17 ms | 400 KiB | 5 Q