3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public $var = "sa"; } class test2{ use test; public function myfunc(){ return $this->var; } } $obj = new test2; echo $obj->myfunc();

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.0160.00616.61
8.3.50.0040.01216.27
8.3.40.0180.00018.71
8.3.30.0040.01118.59
8.3.20.0000.00818.85
8.3.10.0040.00423.40
8.3.00.0040.00423.71
8.2.180.0150.00718.29
8.2.170.0170.00322.96
8.2.160.0100.00718.99
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00722.25
8.2.120.0040.00426.35
8.2.110.0030.00621.04
8.2.100.0000.01117.84
8.2.90.0040.00417.63
8.2.80.0000.00817.97
8.2.70.0000.00817.80
8.2.60.0030.00517.80
8.2.50.0000.00818.10
8.2.40.0040.00419.31
8.2.30.0030.00519.22
8.2.20.0040.00417.94
8.2.10.0030.00319.44
8.2.00.0040.00419.25
8.1.280.0070.01425.92
8.1.270.0030.00522.15
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0070.00321.94
8.1.230.0060.00620.96
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0080.00017.23
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0050.00318.66
8.1.160.0000.00718.85
8.1.150.0040.00418.75
8.1.140.0040.00417.75
8.1.130.0030.00319.05
8.1.120.0030.00317.40
8.1.110.0050.00217.35
8.1.100.0050.00217.32
8.1.90.0040.00417.30
8.1.80.0080.00017.35
8.1.70.0000.00717.38
8.1.60.0000.00817.54
8.1.50.0040.00417.33
8.1.40.0040.00417.34
8.1.30.0080.00017.57
8.1.20.0000.00917.58
8.1.10.0050.00317.30
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.43
8.0.270.0000.00717.11
8.0.260.0030.00317.30
8.0.250.0030.00616.88
8.0.240.0030.00316.95
8.0.230.0040.00417.02
8.0.220.0030.00516.89
8.0.210.0000.00716.85
8.0.200.0030.00616.84
8.0.190.0000.00816.96
8.0.180.0000.00716.90
8.0.170.0000.00916.93
8.0.160.0000.00816.89
8.0.150.0030.00516.70
8.0.140.0000.00716.90
8.0.130.0050.00013.30
8.0.120.0060.00316.86
8.0.110.0050.00516.71
8.0.100.0000.00716.87
8.0.90.0040.00416.71
8.0.80.0090.01316.85
8.0.70.0040.00416.96
8.0.60.0050.00316.87
8.0.50.0040.00416.88
8.0.30.0100.00917.03
8.0.20.0140.00717.40
8.0.10.0040.00417.08
8.0.00.0190.00716.81
7.4.330.0000.00515.55
7.4.320.0040.00416.51
7.4.300.0030.00316.45
7.4.290.0000.00716.45
7.4.280.0040.00616.47
7.4.270.0030.00316.52
7.4.260.0040.00416.54
7.4.250.0030.00316.39
7.4.240.0000.00816.41
7.4.230.0070.00016.44
7.4.220.0080.00016.61
7.4.210.0040.01316.50
7.4.200.0050.00316.33
7.4.160.0080.01116.34
7.4.140.0100.01017.86
7.4.130.0130.00516.40
7.4.120.0110.00816.43
7.4.110.0140.00316.52
7.4.100.0130.01016.57
7.4.90.0090.00916.46
7.4.80.0100.00719.39
7.4.70.0070.01016.51
7.4.60.0030.01516.22
7.4.50.0060.00616.51
7.4.40.0130.00316.45
7.4.00.0100.00814.95
7.3.330.0000.00513.23
7.3.320.0060.00013.23
7.3.310.0000.00716.02
7.3.300.0000.00716.23
7.3.290.0020.00516.10
7.3.280.0100.00616.22
7.3.260.0070.01016.31
7.3.240.0110.00716.36
7.3.230.0130.00316.21
7.3.210.0140.00316.23
7.3.200.0120.00316.32
7.3.190.0140.00316.26
7.3.180.0090.00616.13
7.3.170.0130.00416.21
7.3.160.0070.01016.29
7.3.120.0060.01214.88
7.3.110.0070.01114.66
7.3.100.0040.01514.75
7.3.90.0070.01114.68
7.3.80.0090.00314.84
7.3.70.0040.00714.82
7.3.60.0070.00714.27
7.3.50.0070.00714.47
7.3.40.0060.00314.82
7.3.30.0090.00314.51
7.3.20.0060.00716.70
7.3.10.0050.01016.44
7.3.00.0080.00616.45
7.2.330.0120.00816.42
7.2.320.0090.00916.59
7.2.310.0040.01316.63
7.2.300.0130.00316.53
7.2.290.0030.01416.27
7.2.250.0060.01314.83
7.2.240.0100.01014.74
7.2.230.0100.00714.63
7.2.220.0030.00615.00
7.2.210.0060.00915.11
7.2.200.0070.00714.88
7.2.190.0000.01414.66
7.2.180.0070.00714.61
7.2.170.0000.01214.85
7.2.130.0000.01416.77
7.2.120.0030.00616.86
7.2.110.0040.00716.64
7.2.100.0000.01316.41
7.2.90.0000.01516.58
7.2.80.0280.01015.09
7.2.70.0360.00615.43
7.2.60.0310.01015.49
7.2.50.0420.01015.47
7.2.40.0430.00915.39
7.2.30.0320.00915.37
7.2.20.0390.01015.52
7.2.10.0360.00915.17
7.2.00.0320.00715.50
7.1.330.0060.00615.77
7.1.320.0000.01315.86
7.1.310.0030.01015.77
7.1.300.0100.00715.65
7.1.290.0040.01115.75
7.1.280.0030.00915.65
7.1.270.0030.01215.66
7.1.260.0070.00715.56
7.1.250.0030.01015.58
7.1.200.0030.01015.60
7.1.190.0390.00713.81
7.1.180.0580.00713.70
7.1.170.0590.01213.58
7.1.160.0460.00713.77
7.1.150.0430.00713.70
7.1.140.0580.01613.70
7.1.130.0550.00513.71
7.1.120.0630.00713.69
7.1.110.0650.00813.76
7.1.100.0670.00713.53
7.1.90.0550.01313.54
7.1.80.0740.01113.73
7.1.70.0660.00813.63
7.1.60.1010.00831.69
7.1.50.0890.00731.62
7.1.40.0790.01031.73
7.1.30.0770.01331.64
7.1.20.0830.01031.51
7.1.10.0700.00613.67
7.1.00.0490.00813.78

preferences:
57.56 ms | 400 KiB | 5 Q