3v4l.org

run code in 300+ PHP versions simultaneously
<?php class trial{ public $id; public static $sid; public static function show(){ if (trial::$sid) echo trial::$sid; else echo $this->id; } } $obj = new trial(); $obj->id = 1; $obj->show(); echo "\n\n"; trial::$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.40.0070.01019.01
8.3.30.0040.01118.89
8.3.20.0080.00020.39
8.3.10.0040.00421.73
8.3.00.0080.00019.67
8.2.170.0120.00322.96
8.2.160.0070.01120.47
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00417.63
8.2.110.0090.00019.38
8.2.100.0060.00617.63
8.2.90.0040.00419.09
8.2.80.0030.00717.97
8.2.70.0050.00517.48
8.2.60.0030.00517.68
8.2.50.0080.00018.07
8.2.40.0090.00019.42
8.2.30.0040.00419.67
8.2.20.0000.00817.69
8.2.10.0000.00717.91
8.2.00.0000.00717.92
8.1.270.0040.00720.25
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00620.93
8.1.230.0060.00617.42
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0040.00418.49
8.1.160.0040.00421.90
8.1.150.0040.00418.72
8.1.140.0000.00817.39
8.1.130.0040.00417.55
8.1.120.0000.00717.41
8.1.110.0050.00317.38
8.1.100.0030.00517.41
8.1.90.0030.00417.35
8.1.80.0030.00617.32
8.1.70.0000.00717.45
8.1.60.0030.00617.51
8.1.50.0040.00417.43
8.1.40.0040.00417.52
8.1.30.0030.00617.55
8.1.20.0040.00417.68
8.1.10.0040.00417.54
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.45
8.0.270.0000.00717.12
8.0.260.0030.00317.26
8.0.250.0070.00316.94
8.0.240.0070.00016.89
8.0.230.0070.00017.03
8.0.220.0070.00016.89
8.0.210.0040.00416.91
8.0.200.0000.00916.93
8.0.190.0030.00516.97
8.0.180.0000.00716.99
8.0.170.0040.00416.83
8.0.160.0050.00317.01
8.0.150.0000.00716.70
8.0.140.0000.00716.78
8.0.130.0040.00413.30
8.0.120.0080.00016.88
8.0.110.0050.00316.74
8.0.100.0000.00716.87
8.0.90.0040.00416.93
8.0.80.0000.01416.92
8.0.70.0070.00016.86
8.0.60.0030.00516.89
8.0.50.0090.00016.73
8.0.30.0140.00417.15
8.0.20.0050.01317.40
8.0.10.0000.00716.89
8.0.00.0100.00916.90
7.4.330.0000.00515.08
7.4.320.0000.00616.41
7.4.300.0000.00616.61
7.4.290.0110.00016.45
7.4.280.0030.00516.61
7.4.270.0070.00016.59
7.4.260.0000.00816.64
7.4.250.0070.00016.43
7.4.240.0010.00616.62
7.4.230.0030.00316.59
7.4.220.0110.01416.70
7.4.210.0120.00316.72
7.4.200.0000.00816.63
7.4.160.0090.00616.48
7.4.150.0120.00617.40
7.4.140.0150.00517.86
7.4.130.0080.00816.45
7.4.120.0150.00316.52
7.4.110.0180.00016.39
7.4.100.0030.01416.60
7.4.90.0100.00816.52
7.4.80.0120.01519.39
7.4.70.0070.01016.57
7.4.60.0130.00316.35
7.4.50.0000.00416.36
7.4.40.0040.01116.51
7.4.30.0100.00616.57
7.4.00.0070.00715.05
7.3.330.0060.00013.33
7.3.320.0030.00313.39
7.3.310.0000.00716.41
7.3.300.0070.00016.19
7.3.290.0090.00816.36
7.3.280.0100.00816.40
7.3.270.0100.00717.40
7.3.260.0200.00316.53
7.3.250.0120.00716.50
7.3.240.0120.00416.27
7.3.230.0100.01316.48
7.3.210.0100.00616.36
7.3.200.0110.00416.46
7.3.190.0060.01316.59
7.3.180.0100.00616.59
7.3.170.0120.00616.44
7.3.160.0150.00616.35
7.2.330.0090.00916.46
7.2.320.0000.01816.61
7.2.310.0120.00616.61
7.2.300.0060.01016.63
7.2.290.0100.00716.79
7.2.60.0240.00416.20
7.2.00.0040.01519.16
7.1.200.0040.00715.72
7.1.100.0030.01517.80
7.1.70.0080.00317.16
7.1.60.0070.01719.13
7.1.50.0040.01216.94
7.1.00.0030.07722.45
7.0.200.0040.00416.66
7.0.60.0070.06719.92
7.0.50.0100.06317.86
7.0.40.0070.06020.24
7.0.30.0500.06020.11
7.0.20.0270.08320.26
7.0.10.0100.07720.08
7.0.00.0070.08720.09
5.6.280.0070.04020.79
5.6.210.0100.07320.68
5.6.200.0030.04318.16
5.6.190.0070.05020.55
5.6.180.3400.04720.78
5.6.170.0400.06720.51
5.6.160.0070.07720.61
5.6.150.0070.08318.14
5.6.140.0030.03718.15
5.6.130.0030.08018.14
5.6.120.0170.07721.12
5.6.110.0030.08721.17
5.6.100.0200.06321.04
5.6.90.0130.05320.97
5.6.80.0070.04020.51
5.6.70.3670.03020.37
5.5.350.0070.07720.40
5.5.340.0070.08317.96
5.5.330.0070.05720.40
5.5.320.0230.04320.24
5.5.310.0170.05720.32
5.5.300.0030.06317.95
5.5.290.0030.08718.06
5.5.280.0130.08320.98
5.5.270.0030.05720.76
5.5.260.0130.06020.89
5.5.250.0030.04020.61
5.5.240.0330.05020.23
5.4.450.0530.05719.15
5.4.440.0530.05319.43
5.4.430.0400.07319.54
5.4.420.0700.04719.41
5.4.410.0600.06318.98
5.4.400.0570.05718.93
5.4.390.0570.06019.23
5.4.380.0870.05319.22
5.4.370.0700.05719.09
5.4.360.0600.05319.33
5.4.350.0530.06019.10
5.4.340.0630.05018.84
5.4.320.0670.05018.95
5.4.310.0800.04319.23
5.4.300.0530.06319.28
5.4.290.0670.05319.21
5.4.280.0730.05018.82
5.4.270.0630.05319.23
5.4.260.0700.04319.25
5.4.250.0570.05019.22
5.4.240.0600.05319.28
5.4.230.0530.05719.12
5.4.220.0670.05019.22
5.4.210.0630.06019.07
5.4.200.0600.05719.21
5.4.190.0500.05719.04
5.4.180.0730.05318.92
5.4.170.0530.05319.21
5.4.160.0570.04319.21
5.4.150.0270.05019.22
5.4.140.0470.04316.38
5.4.130.0570.04716.47
5.4.120.0600.04316.67
5.4.110.0670.05316.57
5.4.100.0570.04716.28
5.4.90.0270.05016.25
5.4.80.0330.05016.55
5.4.70.0030.05716.53
5.4.60.0270.05316.33
5.4.50.0030.07016.42
5.4.40.0200.07316.43
5.4.30.0170.03716.55
5.4.20.0170.03716.37

preferences:
48.78 ms | 400 KiB | 5 Q