3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 'intruder'; define('con', '"smart"'); // Use a closure (anomynous function) like so: $_ = function ($val){return $val;}; $doc = <<<TXT Hi there, One day I caught this $int nearby. I was then told that actually other {$_(con)} $int was there before. So who came first, the chicken or the egg? TXT; echo $doc;

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.0120.00318.43
8.3.50.0170.00319.77
8.3.40.0070.01418.82
8.3.30.0040.01118.67
8.3.20.0040.00421.77
8.3.10.0080.00023.47
8.3.00.0050.00223.56
8.2.180.0140.00725.92
8.2.170.0060.00918.87
8.2.160.0140.00022.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00318.21
8.2.120.0040.00426.35
8.2.110.0060.00921.07
8.2.100.0110.00017.72
8.2.90.0080.00017.84
8.2.80.0000.00819.12
8.2.70.0040.00417.50
8.2.60.0080.00017.50
8.2.50.0040.00417.55
8.2.40.0080.00019.83
8.2.30.0070.00017.94
8.2.20.0040.00417.99
8.2.10.0040.00420.57
8.2.00.0040.00419.48
8.1.280.0180.00425.92
8.1.270.0070.00723.99
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0000.00922.06
8.1.230.0100.00320.88
8.1.220.0040.00417.77
8.1.210.0060.00318.79
8.1.200.0000.00817.22
8.1.190.0060.00617.13
8.1.180.0000.01118.10
8.1.170.0080.00018.56
8.1.160.0050.00218.81
8.1.150.0040.00418.83
8.1.140.0040.00422.18
8.1.130.0080.00017.47
8.1.120.0030.00317.50
8.1.110.0050.00317.45
8.1.100.0000.00717.47
8.1.90.0040.00417.36
8.1.80.0080.00017.48
8.1.70.0030.00317.43
8.1.60.0000.00817.59
8.1.50.0030.00517.43
8.1.40.0000.00817.48
8.1.30.0040.00417.66
8.1.20.0070.00017.71
8.1.10.0040.00417.48
8.1.00.0000.00717.49
8.0.300.0000.00720.18
8.0.290.0040.00416.75
8.0.280.0030.00318.42
8.0.270.0000.00717.28
8.0.260.0070.00016.95
8.0.250.0000.00817.05
8.0.240.0000.00717.07
8.0.230.0000.00717.03
8.0.220.0070.00016.96
8.0.210.0040.00416.82
8.0.200.0000.00716.95
8.0.190.0000.00817.00
8.0.180.0040.00416.85
8.0.170.0060.00317.02
8.0.160.0050.00316.89
8.0.150.0030.00616.96
8.0.140.0070.00016.81
8.0.130.0030.00313.35
8.0.120.0050.00516.89
8.0.110.0060.00316.97
8.0.100.0070.00016.79
8.0.90.0080.00017.02
8.0.80.0080.00716.91
8.0.70.0050.00216.98
8.0.60.0000.00717.04
8.0.50.0050.00216.77
8.0.30.0090.01317.13
8.0.20.0110.00917.18
8.0.10.0120.01117.09
8.0.00.0110.01217.08
7.4.330.0060.00016.79
7.4.320.0030.00316.50
7.4.300.0060.00016.53
7.4.290.0040.00416.53
7.4.280.0030.00616.62
7.4.270.0030.00316.38
7.4.260.0070.00016.61
7.4.250.0040.00416.57
7.4.240.0040.00416.66
7.4.230.0000.00716.64
7.4.220.0030.00516.70
7.4.210.0070.01316.61
7.4.200.0030.00516.49
7.4.160.0120.00516.58
7.4.150.0090.00616.44
7.4.140.0090.00917.52
7.4.130.0100.01216.57
7.4.120.0130.00916.42
7.4.110.0110.01116.59
7.4.100.0130.00716.51
7.4.90.0080.01216.50
7.4.80.0140.00917.40
7.4.70.0130.01016.46
7.4.60.0080.01016.63
7.4.50.0130.00916.42
7.4.40.0120.00916.35
7.4.30.0170.00916.38
7.4.20.0110.01316.42
7.4.10.0150.01116.36
7.4.00.0090.01215.97
7.3.330.0030.00313.45
7.3.320.0040.00413.46
7.3.310.0040.00416.33
7.3.300.0070.00016.44
7.3.290.0030.00316.31
7.3.280.0090.00816.41
7.3.270.0030.01216.41
7.3.260.0090.01016.40
7.3.250.0130.01016.48
7.3.240.0140.00716.45
7.3.230.0090.01116.35
7.3.220.0150.00616.39
7.3.210.0120.00916.43
7.3.200.0110.00716.46
7.3.190.0130.00616.44
7.3.180.0100.01216.38
7.3.170.0150.00816.34
7.3.160.0120.01116.32
7.3.150.0150.00716.28
7.3.140.0130.00916.36
7.3.130.0110.01116.36
7.3.120.0130.01116.30
7.3.110.0150.00816.35
7.3.100.0150.00416.39
7.3.90.0110.00916.49
7.3.80.0120.01016.32
7.3.70.0210.00516.40
7.3.60.0150.01416.37
7.3.50.0240.01316.33
7.3.40.0140.01216.29
7.3.30.0170.00816.38
7.3.20.0860.00716.42
7.3.10.0140.01116.47
7.3.00.0260.01015.67
7.2.340.0280.00916.55
7.2.330.0450.00816.48
7.2.320.0220.00616.55
7.2.310.0200.01116.51
7.2.300.0220.00916.48
7.2.290.0210.00716.59
7.2.280.0210.01516.43
7.2.270.0270.01116.45
7.2.260.0170.01716.45
7.2.250.0230.01216.45
7.2.240.0230.01116.39
7.2.230.0240.01016.51
7.2.220.0270.00816.53
7.2.210.0210.01816.40
7.2.200.0270.01016.60
7.2.190.0230.01316.50
7.2.180.0280.00916.58
7.2.170.0290.00616.55
7.2.160.0230.00916.58
7.2.150.0200.01416.61
7.2.140.0240.01016.54
7.2.130.0230.01316.24
7.2.120.0220.01216.20
7.2.110.0260.00516.12
7.2.100.0200.00816.22
7.2.90.0190.01016.12
7.2.80.0230.00816.16
7.2.70.0230.01016.27
7.2.60.0200.01216.27
7.2.50.0310.00616.18
7.2.40.0240.01016.36
7.2.30.0270.00716.33
7.2.20.0280.00616.18
7.2.10.0210.01216.17
7.2.00.0210.01116.26
7.1.330.0230.01115.60
7.1.320.0430.00915.48
7.1.310.0260.00615.54
7.1.300.0180.01215.50
7.1.290.0280.00315.54
7.1.280.0240.01115.56
7.1.270.0250.00615.49
7.1.260.0210.01115.63
7.1.250.0350.01115.13
7.1.240.0200.01315.41
7.1.230.0210.01115.41
7.1.220.0240.00715.45
7.1.210.0160.01215.52
7.1.200.0200.01315.34
7.1.190.0380.01115.56
7.1.180.0220.00815.54
7.1.170.0250.00815.50
7.1.160.0350.00615.39
7.1.150.0250.01115.57
7.1.140.0260.00515.54
7.1.130.0270.00715.42
7.1.120.0210.00915.50
7.1.110.0300.00915.51
7.1.100.0210.01015.41
7.1.90.0230.00715.46
7.1.80.0220.00915.39
7.1.70.0220.01015.35
7.1.60.0230.00715.47
7.1.50.0180.01115.51
7.1.40.0250.00715.54
7.1.30.0220.00915.52
7.1.20.0200.01015.50
7.1.10.0190.00715.53
7.1.00.0190.00815.50
7.0.330.0330.00914.66
7.0.320.0180.01015.21
7.0.310.0210.01015.20
7.0.300.0200.00915.15
7.0.290.0150.01515.15
7.0.280.0200.00915.23
7.0.270.0250.00815.22
7.0.260.0250.00715.15
7.0.250.0250.01015.26
7.0.240.0170.01115.34
7.0.230.0240.00915.16
7.0.220.0210.01115.32
7.0.210.0200.00715.23
7.0.200.0380.01115.23
7.0.190.0240.01115.25
7.0.180.0230.00715.32
7.0.170.0210.01015.21
7.0.160.0240.00515.22
7.0.150.0380.00915.28
7.0.140.0230.00615.19
7.0.130.0220.00515.25
7.0.120.0200.00915.28
7.0.110.0210.00815.23
7.0.100.0160.01115.15
7.0.90.0180.01015.09
7.0.80.0230.00315.20
7.0.70.0210.00715.22
7.0.60.0200.00915.28
7.0.50.0180.00715.24
7.0.40.0220.00615.15
7.0.30.0180.00815.18
7.0.20.0190.00915.14
7.0.10.0200.00815.26
7.0.00.0150.01115.15
5.6.400.0240.00815.87
5.6.390.0210.01415.91
5.6.380.0160.01015.43
5.6.370.0230.01215.99
5.6.360.0230.00515.88
5.6.350.0190.01515.91
5.6.340.0170.01515.94
5.6.330.0260.00515.79
5.6.320.0200.01115.86
5.6.310.0190.00915.76
5.6.300.0180.01215.81
5.6.290.0190.00915.89
5.6.280.0200.01415.84
5.6.270.0180.01115.80
5.6.260.0200.00915.83
5.6.250.0280.00415.78
5.6.240.0210.00715.85
5.6.230.0170.01115.85
5.6.220.0260.00515.90
5.6.210.0220.01215.87
5.6.200.0180.00915.95
5.6.190.0160.01215.96
5.6.180.0180.01015.88
5.6.170.0310.00715.77
5.6.160.0220.00815.92
5.6.150.0220.00915.87
5.6.140.0230.00815.85
5.6.130.0220.01015.92
5.6.120.0200.00915.96
5.6.110.0230.01015.83
5.6.100.0260.00615.92
5.6.90.0210.01115.76
5.6.80.0200.01115.90
5.6.70.0200.01015.87
5.6.60.0220.01015.97
5.6.50.0240.00715.73
5.6.40.0250.00315.91
5.6.30.0210.00915.81
5.6.20.0180.01315.80
5.6.10.0250.00815.91
5.6.00.0180.01215.81

preferences:
62.27 ms | 401 KiB | 5 Q