3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait tr { public function a() { return $this->a; } } class Test { private $a; function b(){ print_r(a()); } }

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.0040.01116.75
8.3.60.0120.00416.63
8.3.50.0090.00921.21
8.3.40.0120.00918.54
8.3.30.0090.00618.58
8.3.20.0040.00423.61
8.3.10.0040.00420.33
8.3.00.0070.00023.52
8.2.180.0120.00318.04
8.2.170.0090.00622.96
8.2.160.0070.00722.25
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00620.53
8.2.100.0030.00917.72
8.2.90.0080.00017.63
8.2.80.0030.00518.66
8.2.70.0000.00817.89
8.2.60.0030.00517.63
8.2.50.0040.00417.55
8.2.40.0030.00520.85
8.2.30.0000.00719.03
8.2.20.0040.00417.95
8.2.10.0050.00319.02
8.2.00.0040.00419.11
8.1.280.0040.01425.92
8.1.270.0040.00421.77
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0120.00322.02
8.1.230.0100.00322.66
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0000.00718.92
8.1.160.0040.00418.75
8.1.150.0040.00418.71
8.1.140.0040.00423.93
8.1.130.0000.01019.95
8.1.120.0070.00017.22
8.1.110.0070.00017.35
8.1.100.0070.00017.21
8.1.90.0000.00717.33
8.1.80.0000.00717.33
8.1.70.0030.00517.30
8.1.60.0000.00917.43
8.1.50.0030.00617.36
8.1.40.0040.00417.24
8.1.30.0000.00817.52
8.1.20.0000.00817.48
8.1.10.0000.00717.32
8.1.00.0000.00817.32
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0000.00718.37
8.0.270.0000.00717.12
8.0.260.0000.00819.97
8.0.250.0000.00616.78
8.0.240.0060.00316.80
8.0.230.0000.00816.82
8.0.220.0000.00716.77
8.0.210.0030.00316.62
8.0.200.0030.00316.72
8.0.190.0040.00416.73
8.0.180.0050.00216.79
8.0.170.0060.00616.86
8.0.160.0000.00716.83
8.0.150.0070.00016.61
8.0.140.0030.00316.61
8.0.130.0000.00613.20
8.0.120.0000.00816.72
8.0.110.0040.00416.82
8.0.100.0040.00416.77
8.0.90.0030.00516.73
8.0.80.0110.00916.77
8.0.70.0040.00416.63
8.0.60.0070.00016.55
8.0.50.0000.00716.61
8.0.30.0090.00916.85
8.0.20.0030.01616.82
8.0.10.0050.00316.79
8.0.00.0080.01016.61
7.4.330.0000.00515.55
7.4.320.0040.00416.31
7.4.300.0040.00416.26
7.4.290.0000.00716.26
7.4.280.0040.00416.35
7.4.270.0040.00416.35
7.4.260.0050.00216.44
7.4.250.0000.00816.26
7.4.240.0060.00216.42
7.4.230.0070.00016.18
7.4.220.0040.00416.38
7.4.210.0080.00616.41
7.4.200.0030.00516.49
7.4.130.0150.00916.42
7.4.120.0040.01316.31
7.4.110.0060.01216.10
7.4.100.0090.00916.36
7.4.90.0140.00316.46
7.4.80.0070.01319.39
7.4.70.0120.00416.35
7.4.60.0070.01016.29
7.4.50.0080.00616.51
7.4.40.0160.00016.50
7.4.00.0030.01414.74
7.3.330.0000.00613.18
7.3.320.0030.00313.20
7.3.310.0000.00816.20
7.3.300.0030.00316.18
7.3.290.0080.01116.20
7.3.280.0070.01316.15
7.3.260.0140.00416.28
7.3.230.0070.01516.36
7.3.210.0110.01116.36
7.3.200.0030.01316.14
7.3.190.0040.01316.45
7.3.180.0080.00816.32
7.3.170.0090.01216.15
7.3.160.0090.01216.15
7.3.70.0060.01314.72
7.3.60.0060.00814.65
7.3.50.0100.01314.70
7.3.40.0100.00314.69
7.3.30.0160.00614.80
7.3.20.0030.01014.54
7.3.10.0180.00914.84
7.3.00.0060.00914.63
7.2.330.0120.00616.14
7.2.320.0170.00016.11
7.2.310.0130.00316.53
7.2.300.0100.01016.31
7.2.290.0050.01116.22
7.2.200.0090.01214.89
7.2.190.0110.00414.57
7.2.180.0070.00614.71
7.2.170.0090.00314.92
7.2.160.0060.01514.57
7.2.150.0050.00914.73
7.2.140.1370.00014.57
7.2.130.0090.00914.97
7.2.120.0100.01414.89
7.2.110.0080.00514.92
7.2.100.0200.00714.71
7.2.90.0140.00014.70
7.2.80.0070.00714.75
7.2.70.0060.00814.75
7.2.60.0110.00314.55
7.2.50.0120.01614.79
7.2.40.0100.00714.90
7.2.30.0140.00314.88
7.2.20.0030.01014.62
7.2.10.0060.01914.76
7.2.00.0060.00914.96
7.1.300.0120.00313.75
7.1.290.0100.01313.82
7.1.280.0130.00013.71
7.1.270.0070.01113.94
7.1.260.0070.00713.61
7.1.250.0120.00313.66

preferences:
48.68 ms | 401 KiB | 5 Q