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();

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.0040.01119.01
8.3.30.0110.00418.79
8.3.20.0000.00820.16
8.3.10.0000.00721.90
8.3.00.0040.00419.72
8.2.170.0060.00922.96
8.2.160.0070.00720.43
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.50
8.2.110.0100.00022.14
8.2.100.0120.00017.50
8.2.90.0080.00019.05
8.2.80.0070.00317.97
8.2.70.0040.00417.48
8.2.60.0000.00717.93
8.2.50.0080.00018.07
8.2.40.0040.00419.27
8.2.30.0040.00419.84
8.2.20.0000.00817.69
8.2.10.0050.00218.06
8.2.00.0040.00417.98
8.1.270.0110.00720.21
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00322.48
8.1.230.0080.00317.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0000.00821.93
8.1.150.0000.00718.80
8.1.140.0030.00517.50
8.1.130.0040.00417.64
8.1.120.0040.00417.46
8.1.110.0040.00417.46
8.1.100.0000.00717.48
8.1.90.0000.00717.37
8.1.80.0030.00517.44
8.1.70.0030.00317.35
8.1.60.0050.00217.58
8.1.50.0040.00417.54
8.1.40.0080.00017.50
8.1.30.0060.00317.56
8.1.20.0050.00217.50
8.1.10.0080.00017.54
8.1.00.0000.00817.39
8.0.300.0060.00318.77
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0030.00317.26
8.0.260.0040.00417.13
8.0.250.0030.00517.07
8.0.240.0000.00817.02
8.0.230.0000.00717.00
8.0.220.0000.00616.86
8.0.210.0000.00716.95
8.0.200.0090.00216.98
8.0.190.0040.00416.98
8.0.180.0030.00516.93
8.0.170.0050.00316.96
8.0.160.0000.00716.85
8.0.150.0040.00416.80
8.0.140.0000.00816.96
8.0.130.0030.00513.38
8.0.120.0000.00716.84
8.0.110.0040.00416.90
8.0.100.0070.00016.90
8.0.90.0040.00416.80
8.0.80.0070.00716.92
8.0.70.0070.00016.98
8.0.60.0070.00016.98
8.0.50.0070.00016.98
8.0.30.0160.00017.07
8.0.20.0120.00717.40
8.0.10.0070.00017.04
8.0.00.0060.01216.61
7.4.330.0050.00015.08
7.4.320.0070.00016.63
7.4.300.0060.00316.54
7.4.290.0000.00616.43
7.4.280.0000.00716.62
7.4.270.0030.00316.52
7.4.260.0080.00016.60
7.4.250.0070.00016.54
7.4.240.0040.00416.54
7.4.230.0000.00716.62
7.4.220.0160.00316.54
7.4.210.0060.01316.52
7.4.200.0030.00316.61
7.4.160.0130.01016.51
7.4.150.0120.00617.40
7.4.140.0120.01017.86
7.4.130.0070.01416.63
7.4.120.0120.00516.52
7.4.110.0000.02116.61
7.4.100.0060.01116.66
7.4.90.0160.00616.36
7.4.80.0090.00819.39
7.4.70.0030.01716.66
7.4.60.0150.00316.43
7.4.50.0050.00016.38
7.4.40.0090.00616.50
7.4.30.0070.01016.71
7.4.10.0090.00616.56
7.4.00.0080.00915.74
7.3.330.0060.00013.33
7.3.320.0060.00013.23
7.3.310.0000.00716.40
7.3.300.0030.00316.23
7.3.290.0080.00816.35
7.3.280.0100.00616.36
7.3.270.0040.01417.40
7.3.260.0100.01316.37
7.3.250.0080.00916.49
7.3.240.0100.00716.53
7.3.230.0070.01016.53
7.3.210.0100.00616.59
7.3.200.0060.01016.46
7.3.190.0100.00716.36
7.3.180.0100.01316.51
7.3.170.0080.00816.51
7.3.160.0030.01316.55
7.3.130.0080.00816.48
7.3.120.0000.01716.41
7.3.110.0030.01316.37
7.3.100.0090.00916.48
7.3.90.0070.01116.25
7.3.80.0000.01016.46
7.3.70.0030.01016.41
7.3.60.0100.00416.28
7.3.50.0110.00316.43
7.3.40.0000.01216.26
7.3.30.0040.00816.46
7.3.20.0000.00918.16
7.3.10.0120.00018.24
7.3.00.0030.01318.32
7.2.330.0110.00716.54
7.2.320.0030.01416.65
7.2.310.0110.01216.44
7.2.300.0060.01116.43
7.2.290.0040.01216.41
7.2.260.0030.01316.67
7.2.250.0100.01016.63
7.2.240.0060.00916.43
7.2.230.0040.01816.71
7.2.220.0100.01316.61
7.2.210.0110.00416.39
7.2.200.0000.01216.40
7.2.190.0030.01016.43
7.2.180.0130.00316.57
7.2.170.0080.00516.67
7.2.160.0000.01316.56
7.2.150.0000.01018.52
7.2.140.0080.00818.43
7.2.130.0100.00318.24
7.2.120.0070.01018.43
7.2.110.0000.01318.49
7.2.100.0110.00418.27
7.2.90.0030.01318.36
7.2.80.0100.01018.63
7.2.70.0090.00318.24
7.2.60.0090.01217.31
7.2.50.0070.01318.45
7.2.40.0030.00718.43
7.2.30.0070.00718.39
7.2.20.0070.00318.33
7.2.10.0040.01518.21
7.2.00.0070.00719.00
7.1.330.0060.01317.27
7.1.320.0120.00317.34
7.1.310.0070.00417.36
7.1.300.0100.00317.30
7.1.290.0060.00917.34
7.1.280.0060.00617.20
7.1.270.0100.00317.16
7.1.260.0070.00717.15
7.1.250.0060.01017.24
7.1.240.0060.00917.19
7.1.230.0000.01617.09
7.1.220.0030.01017.16
7.1.210.0130.00017.20
7.1.200.0090.00516.46
7.1.190.0080.00417.09
7.1.180.0030.01517.22
7.1.170.0100.00717.13
7.1.160.0080.00417.27
7.1.150.0030.01017.07
7.1.140.0070.00717.23
7.1.130.0050.00517.16
7.1.120.0070.00717.11
7.1.110.0070.00417.38
7.1.100.0020.00917.41
7.1.90.0000.01117.12
7.1.80.0030.01317.29
7.1.70.0070.00417.21
7.1.60.0070.01218.18
7.1.50.0050.01317.22
7.1.40.0030.01417.29
7.1.30.0030.00917.13
7.1.20.0030.00617.43
7.1.10.0060.00617.34
7.1.00.0050.04119.76
7.0.330.0070.00716.98
7.0.320.0030.00917.04
7.0.310.0050.00517.05
7.0.300.0000.01717.12
7.0.290.0040.00416.95
7.0.280.0120.00316.89
7.0.270.0000.01116.92
7.0.260.0060.00617.07
7.0.250.0130.00316.96
7.0.240.0120.00416.96
7.0.230.0040.01117.09
7.0.220.0000.01017.00
7.0.210.0150.00017.15
7.0.200.0020.00916.82
7.0.190.0060.00917.04
7.0.180.0000.00917.05
7.0.170.0040.00717.16
7.0.160.0060.00317.15
7.0.150.0060.00316.88
7.0.140.0050.00517.05
7.0.130.0070.00317.00
7.0.120.0100.00316.86
7.0.110.0090.00616.96
7.0.100.0030.01017.06
7.0.90.0040.00416.87
7.0.80.0070.00316.85
7.0.70.0060.01116.78
7.0.60.0100.04618.35
7.0.50.0100.04017.38
7.0.40.0080.04517.51
7.0.30.0100.02517.55
7.0.20.0190.02617.56
7.0.10.0080.04817.52
7.0.00.0100.04217.57
5.6.400.0100.00715.78
5.6.390.0070.01015.70
5.6.380.0090.00615.93
5.6.370.0040.01115.93
5.6.360.0040.00715.79
5.6.350.0060.00616.06
5.6.340.0090.00316.03
5.6.330.0040.00716.01
5.6.320.0070.01015.80
5.6.310.0040.00716.07
5.6.300.0040.00715.96
5.6.290.0030.01015.98
5.6.280.0070.01718.55
5.6.270.0000.01016.02
5.6.260.0000.01516.15
5.6.250.0030.01516.11
5.6.240.0100.00315.91
5.6.230.0070.00415.84
5.6.220.0120.00615.64
5.6.210.0120.03818.26
5.6.200.0130.03817.04
5.6.190.0060.04618.14
5.6.180.2100.02318.23
5.6.170.0170.04318.22
5.6.160.0020.02918.12
5.6.150.0070.02016.97
5.6.140.0080.03717.20
5.6.130.0050.03417.01
5.6.120.0080.02318.46
5.6.110.0110.04118.39
5.6.100.0050.02918.40
5.6.90.0050.03818.48
5.6.80.0100.03918.04
5.6.70.1530.01718.06
5.6.60.0090.00915.68
5.6.50.0070.00715.81
5.6.40.0130.00715.69
5.6.30.0130.00615.70
5.6.20.0050.00715.65
5.6.10.0000.01715.73
5.6.00.0120.00315.77
5.5.380.0040.01115.86
5.5.370.0100.00015.87
5.5.360.0090.00615.85
5.5.350.0080.02018.01
5.5.340.0060.03316.94
5.5.330.0080.04317.97
5.5.320.0220.04018.04
5.5.310.0150.02917.92
5.5.300.0030.04716.79
5.5.290.0060.02916.85
5.5.280.0050.04218.24
5.5.270.0110.01718.37
5.5.260.0080.04418.31
5.5.250.0060.04018.23
5.5.240.1780.02517.93
5.5.230.0100.00715.61
5.5.220.0060.00915.64
5.5.210.0120.00615.76
5.5.200.0050.01215.69
5.5.190.0030.01315.74
5.5.180.0060.00615.75
5.5.170.0030.01015.85
5.5.160.0090.00315.54
5.5.150.0030.01415.77
5.5.140.0030.01315.88
5.5.130.0030.00915.74
5.5.120.0070.00715.61
5.5.110.0030.01015.80
5.5.100.0000.01615.45
5.5.90.0050.00515.64
5.5.80.0040.01215.67
5.5.70.0100.00315.61
5.5.60.0110.00615.68
5.5.50.0080.00815.81
5.5.40.0060.00615.81
5.5.30.0090.00615.64
5.5.20.0080.00315.66
5.5.10.0070.00415.70
5.5.00.0070.00315.82
5.4.450.0420.02816.21
5.4.440.0370.03516.27
5.4.430.0420.03016.09
5.4.420.0400.03116.20
5.4.410.0280.03516.14
5.4.400.0300.03416.07
5.4.390.0300.03516.04
5.4.380.0360.02516.11
5.4.370.0420.03416.11
5.4.360.0450.02816.13
5.4.350.0420.03016.17
5.4.340.0300.03516.02
5.4.330.0030.00613.00
5.4.320.0350.03116.12
5.4.310.0350.02915.89
5.4.300.0320.03316.00
5.4.290.0380.03316.02
5.4.280.0450.02616.13
5.4.270.0410.02916.02
5.4.260.0470.02716.00
5.4.250.0420.02715.91
5.4.240.0450.02516.16
5.4.230.0380.03416.05
5.4.220.0420.03016.13
5.4.210.0450.02415.91
5.4.200.0350.02816.13
5.4.190.0360.03215.99
5.4.180.0470.02216.16
5.4.170.0390.02516.16
5.4.160.0420.02915.90
5.4.150.0400.02916.12
5.4.140.0370.03014.75
5.4.130.0430.02414.76
5.4.120.0380.03014.63
5.4.110.0430.02514.62
5.4.100.0420.02914.81
5.4.90.0380.03014.64
5.4.80.0380.03014.80
5.4.70.0050.03714.61
5.4.60.0200.02014.69
5.4.50.0020.03114.74
5.4.40.0080.02514.63
5.4.30.0170.02314.71
5.4.20.0200.02314.62
5.4.10.0110.00313.00
5.4.00.0090.00013.00

preferences:
53.62 ms | 400 KiB | 5 Q