3v4l.org

run code in 300+ PHP versions simultaneously
<?php class trial{ public $id; public static $sid; public function show(){ if (trial::$sid) echo trial::$sid; else echo $this->id; } } $obj = new trial(); $obj->id = 1; $obj->show(); echo "\n\n"; trail::$sid = 5; echo trial::show();

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.0090.00616.63
8.3.50.0120.00921.28
8.3.40.0090.00618.76
8.3.30.0120.00318.83
8.3.20.0050.00220.13
8.3.10.0040.00421.95
8.3.00.0090.00019.58
8.2.180.0110.00416.88
8.2.170.0110.00722.96
8.2.160.0140.00720.18
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0100.00022.25
8.2.100.0090.00317.75
8.2.90.0050.00319.05
8.2.80.0000.00917.97
8.2.70.0080.00017.50
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0060.00319.31
8.2.30.0040.00419.76
8.2.20.0040.00417.71
8.2.10.0050.00318.00
8.2.00.0000.00717.88
8.1.280.0040.01125.92
8.1.270.0060.00320.21
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.55
8.1.230.0000.01217.42
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.38
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0040.00418.39
8.1.160.0000.00722.00
8.1.150.0060.00318.71
8.1.140.0080.00017.52
8.1.130.0040.00417.59
8.1.120.0000.00717.31
8.1.110.0000.00817.43
8.1.100.0000.00817.42
8.1.90.0050.00217.29
8.1.80.0030.00517.43
8.1.70.0030.00317.41
8.1.60.0000.00717.48
8.1.50.0040.00417.54
8.1.40.0060.00317.53
8.1.30.0030.00617.66
8.1.20.0050.00317.52
8.1.10.0030.00517.58
8.1.00.0000.00817.59
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.40
8.0.270.0000.00717.25
8.0.260.0030.00317.19
8.0.250.0060.00317.08
8.0.240.0000.00616.93
8.0.230.0040.00416.99
8.0.220.0030.00316.79
8.0.210.0040.00416.84
8.0.200.0050.00516.84
8.0.190.0040.00417.03
8.0.180.0000.00716.77
8.0.170.0040.00416.92
8.0.160.0040.00316.92
8.0.150.0030.00316.80
8.0.140.0070.00016.87
8.0.130.0040.00413.27
8.0.120.0000.00916.90
8.0.110.0050.00316.96
8.0.100.0000.00716.82
8.0.90.0000.00716.73
8.0.80.0060.00816.93
8.0.70.0070.00016.93
8.0.60.0040.00416.80
8.0.50.0030.00516.97
8.0.30.0150.00717.07
8.0.20.0050.01417.40
8.0.10.0000.00716.91
8.0.00.0090.00816.59
7.4.330.0030.00315.08
7.4.320.0000.00616.56
7.4.300.0060.00316.66
7.4.290.0050.00516.55
7.4.280.0000.00716.59
7.4.270.0000.00716.61
7.4.260.0000.00716.55
7.4.250.0000.00816.50
7.4.240.0040.00416.55
7.4.230.0030.00316.36
7.4.220.0100.01016.44
7.4.210.0150.00016.46
7.4.200.0060.00316.59
7.4.160.0080.00816.58
7.4.150.0060.01217.40
7.4.140.0080.01317.86
7.4.130.0160.00116.51
7.4.120.0100.00716.48
7.4.110.0060.01216.31
7.4.100.0060.01216.54
7.4.90.0060.01216.48
7.4.80.0130.01319.39
7.4.70.0100.00716.73
7.4.60.0070.01016.64
7.4.50.0030.00316.55
7.4.40.0110.00616.63
7.4.30.0040.01916.64
7.4.00.0000.01615.20
7.3.330.0030.00313.31
7.3.320.0000.00613.30
7.3.310.0070.00016.27
7.3.300.0040.00416.25
7.3.290.0070.01116.40
7.3.280.0130.00616.38
7.3.270.0140.00317.40
7.3.260.0070.01516.39
7.3.250.0170.00716.46
7.3.240.0100.01316.55
7.3.230.0070.01116.48
7.3.210.0110.00516.41
7.3.200.0090.00516.37
7.3.190.0160.00616.46
7.3.180.0030.01316.26
7.3.170.0130.00316.52
7.3.160.0120.01216.57
7.2.330.0060.01316.77
7.2.320.0070.01016.82
7.2.310.0180.00716.74
7.2.300.0120.00416.77
7.2.290.0070.01016.34
7.2.60.0070.01516.98
7.1.200.0070.00015.64
7.1.100.0030.00917.97
7.1.70.0080.00016.97
7.1.60.0130.01019.13
7.1.50.0100.01416.99
7.1.00.0030.07722.39
7.0.200.0090.00316.98
7.0.60.0070.04019.96
7.0.50.0100.07717.79
7.0.40.0070.05020.23
7.0.30.0430.05020.23
7.0.20.0170.07320.19
7.0.10.0000.04720.09
7.0.00.0100.06320.32
5.6.210.0170.07020.57
5.6.200.0100.06318.29
5.6.190.0070.07320.33
5.6.180.3430.05020.48
5.6.170.0170.05320.39
5.6.160.0100.08320.49
5.6.150.0100.07718.16
5.6.140.0030.06018.18
5.6.130.0070.03718.14
5.6.120.0070.03721.10
5.6.110.0100.07320.89
5.6.100.0130.07721.04
5.6.90.0230.06020.96
5.6.80.0130.07320.39
5.6.70.3900.04020.40
5.5.350.0100.08720.50
5.5.340.0100.07318.02
5.5.330.0030.08320.31
5.5.320.0230.03720.21
5.5.310.0130.05020.34
5.5.300.0130.05317.95
5.5.290.0130.03717.98
5.5.280.0070.06320.98
5.5.270.0130.06320.84
5.5.260.0070.08320.76
5.5.250.0100.08320.61
5.5.240.0370.06720.18
5.4.450.0800.05319.42
5.4.440.0800.05719.57
5.4.430.0700.05719.45
5.4.420.0930.03719.55
5.4.410.0670.06019.20
5.4.400.0730.06019.27
5.4.390.0630.05319.21
5.4.380.0670.04719.05
5.4.370.0670.05019.05
5.4.360.0630.05319.05
5.4.350.0700.05319.07
5.4.340.0800.06019.23
5.4.320.0730.05019.07
5.4.310.0800.05319.13
5.4.300.0800.05319.21
5.4.290.0770.05318.82
5.4.280.0800.05319.34
5.4.270.0870.04719.24
5.4.260.0630.05319.25
5.4.250.0630.05319.21
5.4.240.0700.05319.09
5.4.230.0600.05719.25
5.4.220.0700.06319.01
5.4.210.0770.05319.22
5.4.200.1000.05319.10
5.4.190.0870.06019.08
5.4.180.0800.04719.06
5.4.170.0600.05319.21
5.4.160.0630.05019.11
5.4.150.0670.05018.91
5.4.140.0670.05016.41
5.4.130.0830.04316.29
5.4.120.0570.05316.36
5.4.110.0900.05016.62
5.4.100.1000.04016.43
5.4.90.0800.04716.25
5.4.80.0770.05016.64
5.4.70.0030.03316.26
5.4.60.0270.06316.49
5.4.50.0030.07016.48
5.4.40.0170.06316.51
5.4.30.0230.07016.22
5.4.20.0200.04716.53

preferences:
55.38 ms | 401 KiB | 5 Q